The goal is to trigger after an object modification and I don't want to trigger on recomputes.
Thanks
Here is the exception:
Code: Select all
09:23:13 Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: Access violation
Code: Select all
def offset_control(self):
if not self.no_update.isChecked():
if self.latch == False:
self.latch = True
self.on_color_to_refacing()
self.latch = False
class DocObserver:
def slotCommitTransaction(self, logic):
visCB.offset_control()
visCB = cbToolBox()
do = visCB.DocObserver()
App.addDocumentObserver(do)
Code: Select all
/** Called when an observed document commits a transaction */
void slotCommitTransaction(const App::Document& Doc);