Exemplo n.º 1
0
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
Exemplo n.º 2
0
 def onDeleteConstraint(self):
     self.storeWindowPosition()
     self.Deleted.emit()
     a2plib.setConstraintEditorRef(None)
     a2plib.unTouchA2pObjects()
     self.deleteLater()