diff options
| author | Juan Linietsky | 2016-01-23 19:51:51 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-23 19:51:51 -0300 |
| commit | 6c27df8df609337867c108c5adb66174393e190b (patch) | |
| tree | 11c1e8ad5f1f844fe6af2032784fd8e2a2951420 /tools/editor/scene_tree_editor.cpp | |
| parent | a2992d5955ff4f84f829dcab4859b4f5b5399a2c (diff) | |
| download | godot-6c27df8df609337867c108c5adb66174393e190b.tar.gz godot-6c27df8df609337867c108c5adb66174393e190b.tar.zst godot-6c27df8df609337867c108c5adb66174393e190b.zip | |
Diffstat (limited to 'tools/editor/scene_tree_editor.cpp')
| -rw-r--r-- | tools/editor/scene_tree_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index ea7d76013..0260457c8 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -721,6 +721,9 @@ void SceneTreeEditor::_update_selection(TreeItem *item) { NodePath np = item->get_metadata(0); + if (!has_node(np)) + return; + Node *n=get_node(np); if (!n) |
