1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +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:
Hugo Locurcio
2021-04-04 19:58:46 +02:00
committed by Rémi Verschelde
parent b824895065
commit e2934a04e2
2 changed files with 0 additions and 4 deletions

View File

@@ -3473,9 +3473,6 @@ void SpatialEditorViewport::reset() {
}
void SpatialEditorViewport::focus_selection() {
if (!get_selected_count())
return;
Vector3 center;
int count = 0;