Skip to content

Spatial Editor Focus Selection does not work correctly #114071

@Rawalanche

Description

@Rawalanche

Tested versions

v4.6.beta1.mono.official [d743736]

System information

Windows 11, Godot v4.6.beta1

Issue description

Spatial Editor Focus Selection operation does not work correctly. When activated, it will only center the selected node(s) to the center of the viewport but it will not adjust camera zoom to fit the bounds of selection to the viewport. This means selecting small, distant objects does borderline nothing. This is inconsistent with how any other 3D software (both DCC and game engines work.

Furthermore, even in the scope of Godot itself, this operator works inconsistently, as moving towards the selected object, then pressing F will reset the camera back to original distance prior to move, while zooming towards the object using camera zoom will maintain the distance.

Steps to reproduce

  1. Move camera further from an object, select it and press "Focus Selection"
  2. Notice the camera only centers the object but does not zoom to it
  3. Navigate closer to the object using RMB+W key
  4. Press "Focus Selection" button again, notice the camera jumps back previous distance before RMB+W navigation
  5. Zoom close to the object using the mouse wheel
  6. Press "Focus Selection" button again, notice the camera did not change distance

Result: The Focus Selection operation works unpredictably, changing the distance selection differently based on whether navigation was done using camera zoom or viewport navigation.
Expected: The Focus Selection operation works in any other software, not only centering the selected object(s) but also setting the camera distance to the selection based on the selection bounds.

Minimal reproduction project (MRP)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions