diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index fa34a978c81..7784185d915 100644 --- a/tools/editor/scene_tree_dock.cpp +++ b/tools/editor/scene_tree_dock.cpp @@ -460,6 +460,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;