You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Allow Center Selection to work without any selection in 2D/3D editors
When there is no selection, the camera will center around the
world origin.
This helps people get back to the world center if they haven't added
any nodes yet.
(cherry picked from commit fc055e1993)
This commit is contained in:
committed by
Rémi Verschelde
parent
b824895065
commit
e2934a04e2
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user