浏览代码

Update glTF2Asset.inl

Remove my nonsense, sorry!
Kim Kulling 6 年之前
父节点
当前提交
47e3301c47
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      code/glTF2Asset.inl

+ 3 - 5
code/glTF2Asset.inl

@@ -1359,11 +1359,9 @@ inline void Asset::Load(const std::string& pFile, bool isBinary)
 
     // Force reading of skins since they're not always directly referenced
     if (Value* skinsArray = FindArray(doc, "skins")) {
-        if ( nullptr != skinsArray ) {
-                for (unsigned int i = 0; i < skinsArray->Size(); ++i) {
-                    skins.Retrieve(i);
-                }
-	}
+        for (unsigned int i = 0; i < skinsArray->Size(); ++i) {
+            skins.Retrieve(i);
+        }
     }
 
     if (Value* animsArray = FindArray(doc, "animations")) {