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.
This commit is contained in:
Roy-043
2021-12-08 14:37:23 +01:00
committed by GitHub
parent 4bd77b3b35
commit d3cad74ac6

View File

@@ -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', [])