Skip to content

Commit

Permalink
fix DeepSOIC#86 Property container has no property Support in FreeCAD…
Browse files Browse the repository at this point in the history
… 0.22 > 36274
  • Loading branch information
johnsonm committed May 4, 2024
1 parent 16eb107 commit 2e7b1f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lattice2BaseFeature.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,15 @@ def loads(self,state):
def disableAttacher(self, selfobj, enable= False):
if selfobj.isDerivedFrom('Part::Part2DObject'):
attachprops = [
'Support',
'MapMode',
'MapReversed',
'MapPathParameter',
'AttachmentOffset',
]
if App.Version()[3] < '36274': # 0.22.0dev.36274
attachprops.append('Support')
else:
attachprops.append('AttachmentSupport')
for prop in attachprops:
selfobj.setEditorMode(prop, 0 if enable else 2)
if enable:
Expand Down

0 comments on commit 2e7b1f3

Please sign in to comment.