Merge pull request #92974 from Chaosus/import_settings_animation_bugfix

Fix incorrect camera transform of animation view in the import window
This commit is contained in:
Rémi Verschelde 2024-06-12 10:00:37 +02:00
commit fdb6100d77
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -609,7 +609,7 @@ void SceneImportSettingsDialog::_update_camera() {
float rot_y = cam_rot_y;
float zoom = cam_zoom;
if (selected_type == "Node" || selected_type.is_empty()) {
if (selected_type == "Node" || selected_type == "Animation" || selected_type.is_empty()) {
camera_aabb = contents_aabb;
} else {
if (mesh_preview->get_mesh().is_valid()) {