Browse Source

Update glTF2Asset.inl

some minor review finding: use brackets and add a newline.
Kim Kulling 5 năm trước cách đây
mục cha
commit
7967deb06a
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      code/glTF2/glTF2Asset.inl

+ 3 - 2
code/glTF2/glTF2Asset.inl

@@ -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;