Fix crash in editor when open new scene in editing
resources_dock->cleanup(); // This will delete GDScript instance (if property_editor->obj is scene's GDScript instance, editor will crash)
This commit is contained in:
parent
2495df4ffc
commit
6bc556dee5
1 changed files with 1 additions and 1 deletions
|
@ -1569,8 +1569,8 @@ void EditorNode::_cleanup_scene() {
|
||||||
editor_history.clear();
|
editor_history.clear();
|
||||||
_hide_top_editors();
|
_hide_top_editors();
|
||||||
animation_editor->cleanup();
|
animation_editor->cleanup();
|
||||||
resources_dock->cleanup();
|
|
||||||
property_editor->edit(NULL);
|
property_editor->edit(NULL);
|
||||||
|
resources_dock->cleanup();
|
||||||
scene_import_metadata.unref();
|
scene_import_metadata.unref();
|
||||||
set_edited_scene(NULL);
|
set_edited_scene(NULL);
|
||||||
if (scene) {
|
if (scene) {
|
||||||
|
|
Loading…
Reference in a new issue