From 1e4db01ff56e5464a6fe6406cd76caf1e4612e70 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Thu, 26 Jul 2018 11:13:09 +0800 Subject: [PATCH] assembly: auto solve on constraint group change --- assembly.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/assembly.py b/assembly.py index 92b365e..1aa494e 100644 --- a/assembly.py +++ b/assembly.py @@ -1662,6 +1662,13 @@ class AsmConstraintGroup(AsmGroup): cstr.parent = self obj.recompute() + def onChanged(self,obj,prop): + if obj.Removing or FreeCAD.isRestoring(): + return + if prop not in _IgnoredProperties: + System.onChanged(obj,prop) + Assembly.autoSolve(obj,prop) + @staticmethod def make(parent,name='Constraints'): obj = parent.Document.addObject("App::FeaturePython",name,