Skip to content

Commit 5259f36

Browse files
authored
fix rotate extrude (openscad#5384)
1 parent ef6c55e commit 5259f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geometry/GeometryEvaluator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ static std::unique_ptr<Geometry> rotatePolygon(const RotateExtrudeNode& node, co
856856
}
857857
}
858858

859-
if ((max_x - min_x) > max_x && (max_x - min_x) > fabs(min_x)) {
859+
if (max_x > 0 && min_x < 0) {
860860
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);
861861
return nullptr;
862862
}

0 commit comments

Comments
 (0)