Skip to content

Commit

Permalink
fix rotate extrude (openscad#5384)
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 authored Oct 23, 2024
1 parent ef6c55e commit 5259f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/GeometryEvaluator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ static std::unique_ptr<Geometry> rotatePolygon(const RotateExtrudeNode& node, co
}
}

if ((max_x - min_x) > max_x && (max_x - min_x) > fabs(min_x)) {
if (max_x > 0 && min_x < 0) {
LOG(message_group::Error, "all points for rotate_extrude() must have the same X coordinate sign (range is %1$.2f -> %2$.2f)", min_x, max_x);
return nullptr;
}
Expand Down

0 comments on commit 5259f36

Please sign in to comment.