You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -484,6 +484,7 @@ void SceneTreeEditor::_selected_changed() {
|
||||
void SceneTreeEditor::_deselect_items() {
|
||||
|
||||
// Clear currently elected items in scene tree dock.
|
||||
if (editor_selection)
|
||||
editor_selection->clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user