From 033902e6aeea325aa744820167e5504935863344 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Fri, 24 Jun 2016 23:41:47 +0300 Subject: [PATCH] Fix #9 : touching sketch can break it. by avoiding triggering the FreeCAD bug that causes the problem. --- lattice2RecomputeLocker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lattice2RecomputeLocker.py b/lattice2RecomputeLocker.py index cda9dbc..672a019 100644 --- a/lattice2RecomputeLocker.py +++ b/lattice2RecomputeLocker.py @@ -36,20 +36,20 @@ def touch(obj): if hasattr(obj,"Proxy"): #fixes mystery crash when touching recomputeLocker when it's locked return - + # the workaround is to reassign some properties... for propname in obj.PropertiesList: typ = obj.getTypeIdOfProperty(propname) val = getattr(obj,propname) if typ == 'App::PropertyLink': setattr(obj,propname,val) - elif typ == 'App::PropertyLinkSub': + elif typ == 'App::PropertyLinkSub': #val is (feature,["Edge1","Face2"]) setattr(obj,propname,val) elif typ == 'App::PropertyLinkList': setattr(obj,propname,val) - elif typ == 'App::PropertyLinkSubList': - setattr(obj,propname,val) + #elif typ == 'App::PropertyLinkSubList': #disabled due to FreeCAD bug #2602 + # setattr(obj,propname,val) def touchEverything(doc): touch_count = 0