- anonym XFile materials are named now, to prevent them from being merged somehow

- added another boost dependency - lexical_cast - and a little replacement for all those boost haters out there

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@826 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2010-10-08 17:27:59 +00:00
parent 8aac702e1e
commit f601309db5
4 changed files with 31 additions and 1 deletions

View File

@@ -710,6 +710,8 @@ void XFileParser::ParseDataObjectMaterial( Material* pMaterial)
{
std::string matName;
readHeadOfDataObject( &matName);
if( matName.empty())
matName = std::string( "material") + boost::lexical_cast<std::string>( mLineNumber);
pMaterial->mName = matName;
pMaterial->mIsReference = false;