fix obj parser on Windows
This commit is contained in:
+2
-2
@@ -88,7 +88,7 @@ public:
|
||||
while (hasNext()) {
|
||||
if (peek() != '#' && parseName() == "usemtl") {
|
||||
skipWhitespace();
|
||||
texture = readUntil('\n');
|
||||
texture = readUntilEOL();
|
||||
break;
|
||||
}
|
||||
skipLine();
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
auto cmd = parseName();
|
||||
if (cmd == "usemtl") {
|
||||
skipWhitespace();
|
||||
texture = readUntil('\n');
|
||||
texture = readUntilEOL();
|
||||
mesh = &model->addMesh(texture);
|
||||
break;
|
||||
} else if (cmd == "f") {
|
||||
|
||||
Reference in New Issue
Block a user