mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix obj parser on Windows
This commit is contained in:
parent
a02d626c0a
commit
b6ceadcee7
3 changed files with 11 additions and 2 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue