Update glTF2Asset.inl

fix VS-compiler warning.
pull/3149/head
Kim Kulling 2020-04-19 21:14:47 +02:00 committed by GitHub
parent e3563212d7
commit f71b332ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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) {