Pārlūkot izejas kodu

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

Fix typo on gltf2 camera parameters
Kim Kulling 7 gadi atpakaļ
vecāks
revīzija
0ce3641deb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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");