Merge pull request #4885 from Roy-043/Draft_Fix_Array_Count_Issues

Draft: Fix Draft_PointArray and Draft_TwistedArray Count problems
This commit is contained in:
Yorik van Havre
2021-08-17 15:19:57 +02:00
committed by GitHub
2 changed files with 7 additions and 4 deletions

View File

@@ -175,6 +175,8 @@ class DraftLink(DraftObject):
obj.PlacementList = pls
obj.setPropertyStatus('PlacementList', 'Immutable')
obj.Count = len(pls)
elif hasattr(obj, 'Count') and obj.Count != len(pls): # required for regular pointarrays
obj.Count = len(pls)
if obj.Base:
shape = getattr(obj.Base, 'Shape', None)