diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index e7d8776f1f9..619ff122962 100644 --- a/tools/editor/scene_tree_dock.cpp +++ b/tools/editor/scene_tree_dock.cpp @@ -517,6 +517,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { break; List selection = editor_selection->get_selected_node_list(); + if (selection.size()==0) + break; List reselect;