diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 9ae87198f42..ca7c30be1bd 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -5159,7 +5159,6 @@ void CanvasItemEditor::_focus_selection(int p_op) { rect = rect.merge(canvas_item_rect); } }; - if (count == 0) return; if (p_op == VIEW_CENTER_TO_SELECTION) { diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 1af548a149b..0f152b08621 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -3473,9 +3473,6 @@ void SpatialEditorViewport::reset() { } void SpatialEditorViewport::focus_selection() { - if (!get_selected_count()) - return; - Vector3 center; int count = 0;