Draft: fix _get_shapes in shape2dview.py (#14319)

Fixes #14312.

The `new _get_shapes` function could return the original object shape. This caused a problem if `sh.reverse()` executed.

Note that the file in the linked issue does not produce the error as it does not contain a shape with a negative volume.
This commit is contained in:
Roy-043
2024-05-28 09:45:48 +02:00
committed by GitHub
parent 0557bac0d3
commit f7d8af592b

View File

@@ -200,7 +200,7 @@ class Shape2DView(DraftObject):
return shape.Solids
if shape.ShapeType == "Compound":
return shape.SubShapes
return [shape]
return [shape.copy()]
def execute(self, obj):
if self.props_changed_placement_only(obj) \