Merge pull request #1109 from assimp/issue_899
closes assimp/assimp/issues/899: fix parsing of texture name.
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user