bugfix
This commit is contained in:
@@ -34,7 +34,7 @@ v 343.0 548.0 227.0
|
|||||||
v 343.0 548.0 332.0
|
v 343.0 548.0 332.0
|
||||||
v 213.0 548.0 332.0
|
v 213.0 548.0 332.0
|
||||||
v 213.0 548.0 227.0
|
v 213.0 548.0 227.0
|
||||||
#f -4 -3 -2 -1
|
f -4 -3 -2 -1
|
||||||
|
|
||||||
o ceiling
|
o ceiling
|
||||||
usemtl white
|
usemtl white
|
||||||
|
|||||||
2
test.cc
2
test.cc
@@ -8,7 +8,7 @@ main(
|
|||||||
int argc,
|
int argc,
|
||||||
char **argv)
|
char **argv)
|
||||||
{
|
{
|
||||||
std::string inputfile = "test.obj";
|
std::string inputfile = "cornell_box.obj";
|
||||||
std::vector<tinyobj::shape_t> shapes;
|
std::vector<tinyobj::shape_t> shapes;
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
|||||||
@@ -414,6 +414,8 @@ std::string LoadMtl (
|
|||||||
material.unknown_parameter.insert(std::pair<std::string, std::string>(key, value));
|
material.unknown_parameter.insert(std::pair<std::string, std::string>(key, value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// flush last material.
|
||||||
|
material_map.insert(std::pair<std::string, material_t>(material.name, material));
|
||||||
|
|
||||||
return err.str();
|
return err.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user