Ogre: Fix in Material Loader

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1198 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
jonathanklein
2012-03-12 13:59:51 +00:00
parent accbcb575b
commit df7f177794
2 changed files with 3 additions and 1 deletions

View File

@@ -136,7 +136,7 @@ aiMaterial* OgreImporter::LoadMaterial(const std::string MaterialName) const
//the filename typically ends with .mesh or .mesh.xml
const string MaterialFileName=m_CurrentFilename.substr(0, m_CurrentFilename.rfind(".mesh"))+".material";
IOStream* MatFilePtr=m_CurrentIOHandler->Open(MaterialFileName);
MatFilePtr=m_CurrentIOHandler->Open(MaterialFileName);
if(NULL==MatFilePtr)
{
//try the default mat Library