소스 검색

Merge pull request #119 from DavidWyand-GG/issue118-ColladaMaterials

Fix for Issue #118 for Collada Importer Materials
David Wyand 13 년 전
부모
커밋
cd8bca48d5
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);