Browse Source

Fix FBX orthographic camera size

bqqbarbhg 1 year ago
parent
commit
5e52db5c93
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/fbx/fbx_document.cpp

+ 1 - 1
modules/fbx/fbx_document.cpp

@@ -1266,7 +1266,7 @@ Error FBXDocument::_parse_cameras(Ref<FBXState> p_state) {
 			camera->set_fov(Math::deg_to_rad(real_t(fbx_camera->field_of_view_deg.y)));
 		} else {
 			camera->set_perspective(false);
-			camera->set_size_mag(real_t(fbx_camera->orthographic_size.y));
+			camera->set_size_mag(real_t(fbx_camera->orthographic_size.y * 0.5f));
 		}
 		if (fbx_camera->near_plane != 0.0f) {
 			camera->set_depth_near(fbx_camera->near_plane);