Skip to content

Commit

Permalink
io: fix read obj without material
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcseacave committed Feb 3, 2020
1 parent 3ae6aa4 commit 27b1d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/IO/OBJ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ bool ObjModel::Load(const String& fileName)
}
if (in.fail())
return false;
if (groups.empty())
AddGroup("");
groups.back().faces.push_back(f);
} else
if (keyword == "mtllib") {
Expand Down

0 comments on commit 27b1d32

Please sign in to comment.