Merge pull request #1109 from assimp/issue_899

closes assimp/assimp/issues/899: fix parsing of texture name.
This commit is contained in:
Kim Kulling
2016-12-12 23:42:24 +01:00
committed by GitHub
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));

View File

@@ -171,7 +171,7 @@ struct Bone
// ---------------------------------------------------------------------------
/** Used to load Half-life 1 and 2 SMD models
*/
class SMDImporter : public BaseImporter
class ASSIMP_API SMDImporter : public BaseImporter
{
public:
SMDImporter();