You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #47629 from Calinou/editor-allow-center-selection-without-selection
Allow Center Selection to work without any selection in 2D/3D editors
This commit is contained in:
@@ -5385,9 +5385,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) {
|
||||
center = rect.position + rect.size / 2;
|
||||
|
||||
Reference in New Issue
Block a user