fix crash when switching to fullscreen, back to normal and closing the sketcher

This commit is contained in:
wmayer
2019-09-30 23:55:11 +02:00
parent 12335c7d52
commit 19ac3ecfc7

View File

@@ -5899,6 +5899,7 @@ void ViewProviderSketch::createEditInventorNodes(void)
assert(edit);
edit->EditRoot = new SoSeparator;
edit->EditRoot->ref();
edit->EditRoot->setName("Sketch_EditRoot");
pcRoot->addChild(edit->EditRoot);
edit->EditRoot->renderCaching = SoSeparator::OFF ;
@@ -6087,6 +6088,7 @@ void ViewProviderSketch::unsetEdit(int ModNum)
Gui::coinRemoveAllChildren(edit->EditRoot);
pcRoot->removeChild(edit->EditRoot);
edit->EditRoot->unref();
delete edit;
edit = 0;