Merge pull request #2981 from TheHX/pr-editor-crash
Fix editor crash after closing scene with certain types of nodes
This commit is contained in:
commit
145b8e52e6
1 changed files with 4 additions and 0 deletions
|
@ -1562,6 +1562,10 @@ void EditorNode::_edit_current() {
|
||||||
scene_tree_dock->set_selected(NULL);
|
scene_tree_dock->set_selected(NULL);
|
||||||
property_editor->edit( NULL );
|
property_editor->edit( NULL );
|
||||||
object_menu->set_disabled(true);
|
object_menu->set_disabled(true);
|
||||||
|
|
||||||
|
if (editor_plugin_over)
|
||||||
|
editor_plugin_over->make_visible(false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue