From 5e52db5c939416379548d0f101cb58863811bcf7 Mon Sep 17 00:00:00 2001 From: bqqbarbhg Date: Fri, 12 Apr 2024 04:02:50 +0300 Subject: [PATCH] Fix FBX orthographic camera size --- modules/fbx/fbx_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fbx/fbx_document.cpp b/modules/fbx/fbx_document.cpp index 682cd02efc2..846dcc753ee 100644 --- a/modules/fbx/fbx_document.cpp +++ b/modules/fbx/fbx_document.cpp @@ -1266,7 +1266,7 @@ Error FBXDocument::_parse_cameras(Ref 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);