diff options
| author | Stefano Bonicatti | 2017-12-10 22:33:44 +0100 |
|---|---|---|
| committer | Stefano Bonicatti | 2017-12-10 22:41:54 +0100 |
| commit | cad2fc7ba923f492e4625e02b7cc23500949e9e8 (patch) | |
| tree | 2a37cf7e9495651131b91048829d78cafd3b9278 /editor/scene_tree_editor.cpp | |
| parent | aa5f5191f0e1d7704bf439bbdf41077ce6a61c66 (diff) | |
| download | godot-cad2fc7ba923f492e4625e02b7cc23500949e9e8.tar.gz godot-cad2fc7ba923f492e4625e02b7cc23500949e9e8.tar.zst godot-cad2fc7ba923f492e4625e02b7cc23500949e9e8.zip | |
Diffstat (limited to 'editor/scene_tree_editor.cpp')
| -rw-r--r-- | editor/scene_tree_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index 2c0981ca3..25924212f 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -484,7 +484,8 @@ void SceneTreeEditor::_selected_changed() { void SceneTreeEditor::_deselect_items() { // Clear currently elected items in scene tree dock. - editor_selection->clear(); + if (editor_selection) + editor_selection->clear(); } void SceneTreeEditor::_cell_multi_selected(Object *p_object, int p_cell, bool p_selected) { |
