From 29fa291317dad0ee6db61ee868cbefa2b92698c6 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Mon, 10 Jun 2024 16:01:44 +0300 Subject: [PATCH] Fix incorrect camera transform of animation view in the import window --- editor/import/3d/scene_import_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/3d/scene_import_settings.cpp b/editor/import/3d/scene_import_settings.cpp index 129d0544c38a..3d1eae26af70 100644 --- a/editor/import/3d/scene_import_settings.cpp +++ b/editor/import/3d/scene_import_settings.cpp @@ -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()) {