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-9d2fd5bffc1fpull/1/head
parent
84c6b4fde6
commit
077511b1a0
|
@ -284,10 +284,7 @@ void ObjFileMtlImporter::getTexture()
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string strTexture;
|
std::string strTexture;
|
||||||
m_DataIt = getName<DataArrayIt>( m_DataIt, m_DataItEnd, strTexture );
|
getName<DataArrayIt>( m_DataIt, m_DataItEnd, strTexture );
|
||||||
if ( m_DataItEnd == m_DataIt )
|
|
||||||
return;
|
|
||||||
|
|
||||||
out->Set( strTexture );
|
out->Set( strTexture );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,4 +35,4 @@ Ka 0.200000 0.200000 0.200000
|
||||||
Kd 0.800000 0.800000 0.800000
|
Kd 0.800000 0.800000 0.800000
|
||||||
Ks 0.000000 0.000000 0.000000
|
Ks 0.000000 0.000000 0.000000
|
||||||
Ns 0.000000
|
Ns 0.000000
|
||||||
map_Kd .\engineflare1.jpg
|
map_Kd .\engineflare1.jpg
|
Loading…
Reference in New Issue