FIX: WaveFront MTL files will no line break at the end will now read properly.

Manually removing the line break from a test file for regression testing.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@418 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2009-05-09 23:54:16 +00:00
parent 84c6b4fde6
commit 077511b1a0
2 changed files with 2 additions and 5 deletions

View File

@ -284,10 +284,7 @@ void ObjFileMtlImporter::getTexture()
}
std::string strTexture;
m_DataIt = getName<DataArrayIt>( m_DataIt, m_DataItEnd, strTexture );
if ( m_DataItEnd == m_DataIt )
return;
getName<DataArrayIt>( m_DataIt, m_DataItEnd, strTexture );
out->Set( strTexture );
}