Skip to content

Commit

Permalink
Draft: fix DraftLinkArray
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Sep 5, 2018
1 parent cb1171a commit 4cfd25e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Mod/Draft/Draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -5925,6 +5925,8 @@ def linkSetup(self,obj):
obj.ExpandArray = showElement
obj.configLinkProperty(ShowElement='ExpandArray')
obj.removeProperty('ShowElement')
else:
obj.configLinkProperty(ShowElement='ExpandArray')
if getattr(obj,'ExpandArray',False):
obj.setPropertyStatus('PlacementList','Immutable')
else:
Expand Down Expand Up @@ -5992,8 +5994,9 @@ def onChanged(self, obj, prop):
else:
obj.setPropertyStatus('Shape','Transient')
elif prop == 'ExpandArray':
obj.setPropertyStatus('PlacementList',
'-Immutable' if obj.ExpandArray else 'Immutable')
if hasattr(obj,'PlacementList'):
obj.setPropertyStatus('PlacementList',
'-Immutable' if obj.ExpandArray else 'Immutable')


class _Array(_DraftLink):
Expand Down

0 comments on commit 4cfd25e

Please sign in to comment.