Update glTF2Asset.inl

fix VS-compiler warning.
This commit is contained in:
Kim Kulling
2020-04-19 21:14:47 +02:00
committed by GitHub
parent e3563212d7
commit f71b332ed1

View File

@@ -1035,7 +1035,8 @@ inline void Mesh::Read(Value &pJSON_Object, Asset &pAsset_Root) {
}
}
if (Value* extras = FindObject(pJSON_Object, "extras")) {
Value *extras = FindObject(pJSON_Object, "extras");
if (nullptr != extras ) {
if (Value* curTargetNames = FindArray(*extras, "targetNames")) {
this->targetNames.resize(curTargetNames->Size());
for (unsigned int i = 0; i < curTargetNames->Size(); ++i) {