Fix incorrect camera transform of animation view in the import window

This commit is contained in:
Yuri Rubinsky 2024-06-10 16:01:44 +03:00
parent 32eba1ee17
commit 29fa291317

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()) {