From d3cad74ac68d5580e05a0d5453ab4f00b8d23f42 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 8 Dec 2021 14:37:23 +0100 Subject: [PATCH] Draft: fix regression draftlink.py (#5220) * Draft: fix regression draftlink.py This PR fixes a regression introduces with #5180. Using transformShape is the correct solution. --- src/Mod/Draft/draftobjects/draftlink.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Draft/draftobjects/draftlink.py b/src/Mod/Draft/draftobjects/draftlink.py index d230977acd..e49e7f9cf2 100644 --- a/src/Mod/Draft/draftobjects/draftlink.py +++ b/src/Mod/Draft/draftobjects/draftlink.py @@ -189,7 +189,9 @@ class DraftLink(DraftObject): else: # Resetting the Placement of the copied shape does not work for # Part_Vertex and Draft_Point objects, we need to transform: - shape = shape.transformGeometry(shape.Placement.Matrix.inverse()) + place = shape.Placement + shape = shape.copy() + shape.transformShape(place.Matrix.inverse()) base = [] for i, pla in enumerate(pls): vis = getattr(obj, 'VisibilityList', [])