Merge pull request #120 from dPavelDev/master

Fixed error in getting material name in LoadObjWithCallback
This commit is contained in:
Syoyo Fujita
2016-12-30 20:17:28 +09:00
committed by GitHub

View File

@@ -1805,7 +1805,6 @@ bool LoadObjWithCallback(std::istream &inStream, const callback_t &callback,
if ((0 == strncmp(token, "mtllib", 6)) && IS_SPACE((token[6]))) { if ((0 == strncmp(token, "mtllib", 6)) && IS_SPACE((token[6]))) {
if (readMatFn) { if (readMatFn) {
token += 7; token += 7;
token += 7;
std::vector<std::string> filenames; std::vector<std::string> filenames;
SplitString(std::string(token), ' ', filenames); SplitString(std::string(token), ' ', filenames);