瀏覽代碼

Exception spam fix for FBXMaterial

Mike Samsonov 6 年之前
父節點
當前提交
4e03a2c00d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/FBXMaterial.cpp

+ 1 - 1
code/FBXMaterial.cpp

@@ -316,7 +316,7 @@ Video::Video(uint64_t id, const Element& element, const Document& doc, const std
         relativeFileName = ParseTokenAsString(GetRequiredToken(*RelativeFilename,0));
     }
 
-    if(Content) {
+    if(Content && !Content->Tokens().empty()) {
         //this field is omitted when the embedded texture is already loaded, let's ignore if it's not found
         try {
             const Token& token = GetRequiredToken(*Content, 0);