diff --git a/code/ObjFileMtlImporter.cpp b/code/ObjFileMtlImporter.cpp index f979ce18d..bca10076c 100644 --- a/code/ObjFileMtlImporter.cpp +++ b/code/ObjFileMtlImporter.cpp @@ -284,10 +284,7 @@ void ObjFileMtlImporter::getTexture() } std::string strTexture; - m_DataIt = getName( m_DataIt, m_DataItEnd, strTexture ); - if ( m_DataItEnd == m_DataIt ) - return; - + getName( m_DataIt, m_DataItEnd, strTexture ); out->Set( strTexture ); } diff --git a/test/models/OBJ/spider.mtl b/test/models/OBJ/spider.mtl index f9deffa8e..38207dcc6 100644 --- a/test/models/OBJ/spider.mtl +++ b/test/models/OBJ/spider.mtl @@ -35,4 +35,4 @@ Ka 0.200000 0.200000 0.200000 Kd 0.800000 0.800000 0.800000 Ks 0.000000 0.000000 0.000000 Ns 0.000000 -map_Kd .\engineflare1.jpg +map_Kd .\engineflare1.jpg \ No newline at end of file