Update glTF2Asset.inl

some minor review finding: use brackets and add a newline.
pull/2792/head
Kim Kulling 2019-12-01 12:34:45 +01:00 committed by GitHub
parent bf3b5f4e58
commit 7967deb06a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1492,10 +1492,11 @@ inline void Asset::SetAsBinary()
inline void Asset::ReadExtensionsRequired(Document& doc)
{
Value* extsRequired = FindArray(doc, "extensionsRequired");
if (!extsRequired) return;
if (nullptr == extsRequired) {
return;
}
std::gltf_unordered_map<std::string, bool> exts;
for (unsigned int i = 0; i < extsRequired->Size(); ++i) {
if ((*extsRequired)[i].IsString()) {
exts[(*extsRequired)[i].GetString()] = true;