mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix FBX orthographic camera size
This commit is contained in:
parent
d238b0ef57
commit
5e52db5c93
@ -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 New Issue
Block a user