Merge pull request #1589 from aavenel/fix-typo-gltf

Fix typo on gltf2 camera parameters
pull/1596/head
Kim Kulling 2017-11-26 20:52:49 +01:00 committed by GitHub
commit 0ce3641deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");