I'm trying :
Code: Select all
Sketcher::SketchObject* Obj = sketchgui->getSketchObject();
Obj->Constraints.setSize(Obj->Constraints.getSize() - numberOfConstraintsCreated);
Obj->solve(true);
sketchgui->draw(false, false); // Redraw
I tried to
Code: Select all
Gui::Selection().clearSelection();
Is it wrong to use the class destructor? Should my code be somewhere else? In deactivate function?
Edit : Using deactivated function of the DrawSketchHandler instead of the class destructor fixed the issue.