Skip to content

Commit

Permalink
Merge pull request #92974 from Chaosus/import_settings_animation_bugfix
Browse files Browse the repository at this point in the history
Fix incorrect camera transform of animation view in the import window
  • Loading branch information
akien-mga committed Jun 12, 2024
2 parents 4516050 + 29fa291 commit fdb6100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit fdb6100

Please sign in to comment.