From f7d8af592b9e167823acad3cf7ee2c8ea433db41 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 28 May 2024 09:45:48 +0200 Subject: [PATCH] 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. --- src/Mod/Draft/draftobjects/shape2dview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftobjects/shape2dview.py b/src/Mod/Draft/draftobjects/shape2dview.py index dc9dd94976..8b7c9a363d 100644 --- a/src/Mod/Draft/draftobjects/shape2dview.py +++ b/src/Mod/Draft/draftobjects/shape2dview.py @@ -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) \