Fix typo on gltf2 camera parameters

pull/1589/head
Alexandre Avenel 2017-11-24 20:16:30 +01:00
parent 35819340aa
commit c63263b025
1 changed files with 1 additions and 1 deletions

View File

@ -934,7 +934,7 @@ inline void Camera::Read(Value& obj, Asset& /*r*/)
{
type = MemberOrDefault(obj, "type", Camera::Perspective);
const char* subobjId = (type == Camera::Orthographic) ? "ortographic" : "perspective";
const char* subobjId = (type == Camera::Orthographic) ? "orthographic" : "perspective";
Value* it = FindObject(obj, subobjId);
if (!it) throw DeadlyImportError("GLTF: Camera missing its parameters");