assembly: auto solve on constraint group change
This commit is contained in:
parent
9a3fdec662
commit
1e4db01ff5
|
@ -1662,6 +1662,13 @@ class AsmConstraintGroup(AsmGroup):
|
||||||
cstr.parent = self
|
cstr.parent = self
|
||||||
obj.recompute()
|
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
|
@staticmethod
|
||||||
def make(parent,name='Constraints'):
|
def make(parent,name='Constraints'):
|
||||||
obj = parent.Document.addObject("App::FeaturePython",name,
|
obj = parent.Document.addObject("App::FeaturePython",name,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user