Draft: fix array issue with Draft_Point and Part_Vertex

This commit is contained in:
Roy-043
2021-11-16 17:00:54 +01:00
committed by GitHub
parent 867870e113
commit 5435d3b0ee

View File

@@ -187,8 +187,9 @@ class DraftLink(DraftObject):
"from '{}'\n".format(obj.Label, obj.Base.Label))
raise RuntimeError(_err_msg)
else:
shape = shape.copy()
shape.Placement = App.Placement()
# 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())
base = []
for i, pla in enumerate(pls):
vis = getattr(obj, 'VisibilityList', [])