Merge pull request #5180 from Roy-043/Draft-fix-draft-point-array-issue

Draft: fix array issue with Draft_Point and Part_Vertex.
This commit is contained in:
Yorik van Havre
2021-11-24 15:35:32 +01:00
committed by GitHub

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