Merge pull request #14529 from Smjert/fix/scene-tree-editor-crash

Fix SceneTreeEditor crashing when calling _deselect_items
This commit is contained in:
Rémi Verschelde 2017-12-10 23:01:54 +01:00 committed by GitHub
commit 40250c2434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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