Merge pull request #59273 from V-Sekai/import-scene-no-roll

This commit is contained in:
Rémi Verschelde 2022-03-18 14:03:02 +01:00 committed by GitHub
commit da26fcc91a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -447,7 +447,7 @@ void SceneImportSettings::_update_camera() {
camera->set_orthogonal(camera_size * zoom, 0.0001, camera_size * 2); camera->set_orthogonal(camera_size * zoom, 0.0001, camera_size * 2);
Transform3D xf; Transform3D xf;
xf.basis = Basis(Vector3(0, 1, 0), rot_y) * Basis(Vector3(1, 0, 0), rot_x); xf.basis = Basis(Vector3(1, 0, 0), rot_x) * Basis(Vector3(0, 1, 0), rot_y);
xf.origin = center; xf.origin = center;
xf.translate(0, 0, camera_size); xf.translate(0, 0, camera_size);