Avoid roll in scene importer camera.

This commit is contained in:
K. S. Ernest (iFire) Lee 2022-03-18 04:10:07 -07:00
parent 756178d342
commit 5dec64fcad

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);