- rewrote the XFileLoader material management to handle meshes with dummy material names correctly.

This commit is contained in:
ulf
2013-02-12 13:13:12 +01:00
parent 0f781516bf
commit 18f01268e6
4 changed files with 48 additions and 39 deletions

View File

@@ -85,7 +85,9 @@ struct Material
aiColor3D mEmissive;
std::vector<TexEntry> mTextures;
Material() { mIsReference = false; }
size_t sceneIndex; ///< the index under which it was stored in the scene's material list
Material() { mIsReference = false; sceneIndex = SIZE_MAX; }
};
/** Helper structure to represent a bone weight */