aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorsanikoyes2014-05-08 16:24:52 +0800
committersanikoyes2014-05-08 16:24:52 +0800
commit6bc556dee58b6cda0bd5805c1d2bb4f99200f8f7 (patch)
tree869f6bd1ec192fd39ddbd36ef4a924d9dbcfad27 /tools/editor/editor_node.cpp
parent2495df4ffce5ed3f9d94e0d10801fa6bb6cfba19 (diff)
downloadgodot-6bc556dee58b6cda0bd5805c1d2bb4f99200f8f7.tar.gz
godot-6bc556dee58b6cda0bd5805c1d2bb4f99200f8f7.tar.zst
godot-6bc556dee58b6cda0bd5805c1d2bb4f99200f8f7.zip
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)
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r--tools/editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index 3ef523a69..fc644e76c 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -1569,8 +1569,8 @@ void EditorNode::_cleanup_scene() {
editor_history.clear();
_hide_top_editors();
animation_editor->cleanup();
- resources_dock->cleanup();
property_editor->edit(NULL);
+ resources_dock->cleanup();
scene_import_metadata.unref();
set_edited_scene(NULL);
if (scene) {