1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix SceneTreeEditor crashing when calling _deselect_items

The crash can be triggered for instance by trying to reparent a node
and clicking on the background of the Reparent Node window.
This commit is contained in:
Stefano Bonicatti
2017-12-10 22:33:44 +01:00
parent aa5f5191f0
commit cad2fc7ba9

View File

@@ -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) {