closes assimp/assimp/issues/899: fix parsing of texture name.

This commit is contained in:
Kim Kulling
2016-12-12 21:22:03 +01:00
parent d5e399cbf8
commit 859d15d3a0
6 changed files with 3674 additions and 2 deletions

View File

@@ -1020,7 +1020,7 @@ void SMDImporter::ParseTriangle(const char* szCurrent,
// read the texture file name
const char* szLast = szCurrent;
while (!IsSpaceOrNewLine(*szCurrent++));
while (!IsSpaceOrNewLine(*++szCurrent));
// ... and get the index that belongs to this file name
face.iTexture = GetTextureIndex(std::string(szLast,(uintptr_t)szCurrent-(uintptr_t)szLast));