浏览代码

Fix for Issue #118 for Collada Importer Materials

DavidWyand-GG 13 年之前
父节点
当前提交
05b3a32e2c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Engine/source/ts/collada/colladaAppMesh.cpp

+ 5 - 0
Engine/source/ts/collada/colladaAppMesh.cpp

@@ -463,6 +463,11 @@ S32 ColladaAppMesh::addMaterial(const char* symbol)
          }
       }
    }
+   else
+   {
+      // No Collada material is present for this symbol, so just create an empty one
+      appMaterials.push_back(new ColladaAppMaterial(symbol));
+   }
 
    // Add this symbol to the bound list for the mesh
    boundMaterials.insert(StringTable->insert(symbol), matIndex);