浏览代码

Fix typo on gltf2 camera parameters

Alexandre Avenel 7 年之前
父节点
当前提交
c63263b025
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTF2Asset.inl

+ 1 - 1
code/glTF2Asset.inl

@@ -934,7 +934,7 @@ inline void Camera::Read(Value& obj, Asset& /*r*/)
 {
 {
     type = MemberOrDefault(obj, "type", Camera::Perspective);
     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);
     Value* it = FindObject(obj, subobjId);
     if (!it) throw DeadlyImportError("GLTF: Camera missing its parameters");
     if (!it) throw DeadlyImportError("GLTF: Camera missing its parameters");