Ver código fonte

Merge pull request #2018 from maxvollmer/master

Added check for NULL Compound in Properties70 element (fixes DeadlyImportError on some FBX files)
Kim Kulling 7 anos atrás
pai
commit
878b4b2c18
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      code/FBXDocumentUtil.cpp

+ 1 - 1
code/FBXDocumentUtil.cpp

@@ -115,7 +115,7 @@ std::shared_ptr<const PropertyTable> GetPropertyTable(const Document& doc,
         }
         }
     }
     }
 
 
-    if(!Properties70) {
+    if(!Properties70 || !Properties70->Compound()) {
         if(!no_warn) {
         if(!no_warn) {
             DOMWarning("property table (Properties70) not found",&element);
             DOMWarning("property table (Properties70) not found",&element);
         }
         }