33756 gltf2 importer should use zfar

This commit is contained in:
K. S. Ernest (iFire) Lee 2019-11-21 07:52:18 -08:00
parent 37b230fe3a
commit d0de373884
1 changed files with 2 additions and 2 deletions

View File

@ -2494,9 +2494,9 @@ Camera *EditorSceneImporterGLTF::_generate_camera(GLTFState &state, Node *scene_
const GLTFCamera &c = state.cameras[gltf_node->camera];
if (c.perspective) {
camera->set_perspective(c.fov_size, c.znear, c.znear);
camera->set_perspective(c.fov_size, c.znear, c.zfar);
} else {
camera->set_orthogonal(c.fov_size, c.znear, c.znear);
camera->set_orthogonal(c.fov_size, c.znear, c.zfar);
}
return camera;