def solveConstraints( doc, cache=None, useTransaction = True, matelist=None): if useTransaction: doc.openTransaction("a2p_systemSolving") ss = SolverSystem() systemSolved = ss.solveSystem(doc, matelist ) if useTransaction: doc.commitTransaction() a2plib.unTouchA2pObjects() return systemSolved
def onDeleteConstraint(self): self.storeWindowPosition() self.Deleted.emit() a2plib.setConstraintEditorRef(None) a2plib.unTouchA2pObjects() self.deleteLater()