+ fix crash when closing sketch while external geometry handler is still active
This commit is contained in:
@@ -3297,12 +3297,12 @@ void ViewProviderSketch::unsetEdit(int ModNum)
|
||||
ShowGrid.setValue(false);
|
||||
TightGrid.setValue(true);
|
||||
|
||||
edit->EditRoot->removeAllChildren();
|
||||
pcRoot->removeChild(edit->EditRoot);
|
||||
|
||||
if (edit->sketchHandler)
|
||||
deactivateHandler();
|
||||
|
||||
edit->EditRoot->removeAllChildren();
|
||||
pcRoot->removeChild(edit->EditRoot);
|
||||
|
||||
if (edit->visibleBeforeEdit)
|
||||
this->show();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user