浏览代码

Merge branch 'master' into fix/collada_empty_animation_name

Kim Kulling 3 年之前
父节点
当前提交
90b75cd6e7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      code/AssetLib/MDL/MDLMaterialLoader.cpp

+ 3 - 0
code/AssetLib/MDL/MDLMaterialLoader.cpp

@@ -449,6 +449,9 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
         unsigned int iWidth,
         unsigned int iHeight) {
     std::unique_ptr<aiTexture> pcNew;
+    if (szCurrent == nullptr) {
+        return;
+    }
 
     // get the type of the skin
     unsigned int iMasked = (unsigned int)(iType & 0xF);