Fix material ID assignment.

Fix build of example/obj_sticher.
This commit is contained in:
Syoyo Fujita
2014-09-14 19:51:24 +09:00
parent cbba0a807e
commit e4d4c65a17
7 changed files with 110 additions and 77 deletions

View File

@@ -5,6 +5,7 @@
//
//
// version 0.9.7: Support multi-materials(per-face material ID) per object/grou .
// version 0.9.6: Support Ni(index of refraction) mtl parameter.
// Parse transmittance material parameter correctly.
// version 0.9.5: Parse multiple group name.
@@ -663,7 +664,7 @@ std::string LoadObj(
shape = shape_t();
material = -1;
//material = -1;
faceGroup.clear();
std::vector<std::string> names;
@@ -694,7 +695,7 @@ std::string LoadObj(
shapes.push_back(shape);
}
material = -1;
//material = -1;
faceGroup.clear();
shape = shape_t();