assembly: auto solve on constraint group change

This commit is contained in:
Zheng, Lei 2018-07-26 11:13:09 +08:00
parent 9a3fdec662
commit 1e4db01ff5

View File

@ -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,