Fix FBX orthographic camera size
This commit is contained in:
parent
d238b0ef57
commit
5e52db5c93
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue