diff --git a/code/glTF2Asset.inl b/code/glTF2Asset.inl index ed37937f4..f8955d6d2 100755 --- a/code/glTF2Asset.inl +++ b/code/glTF2Asset.inl @@ -1359,9 +1359,11 @@ 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")) { - for (unsigned int i = 0; i < skinsArray->Size(); ++i) { - skins.Retrieve(i); - } + if ( nullptr != skinsArray ) { + for (unsigned int i = 0; i < skinsArray->Size(); ++i) { + skins.Retrieve(i); + } + } } if (Value* animsArray = FindArray(doc, "animations")) {