From 2e7b1f378ff070715db5665bd7c6011ac1060502 Mon Sep 17 00:00:00 2001 From: Michael K Johnson Date: Sat, 4 May 2024 18:01:18 -0400 Subject: [PATCH] fix DeepSOIC#86 Property container has no property Support in FreeCAD 0.22 > 36274 --- lattice2BaseFeature.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lattice2BaseFeature.py b/lattice2BaseFeature.py index 0176024..d02795b 100644 --- a/lattice2BaseFeature.py +++ b/lattice2BaseFeature.py @@ -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: