Fixed comments

This commit is contained in:
Holden Green
2018-07-04 21:46:42 -07:00
parent adb2309110
commit c5b3139653

View File

@@ -1937,7 +1937,7 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
if (newMaterialId != material) { if (newMaterialId != material) {
// Create per-face material. Thus we don't add `shape` to `shapes` at // Create per-face material. Thus we don't add `shape` to `shapes` at
// this time. // this time.
// just clear `faceGroup` after `exportFaceGroupToShape()` call. // just clear `faceGroup` after `exportGroupsToShape()` call.
exportGroupsToShape(&shape, faceGroup, lineGroup, tags, material, name, exportGroupsToShape(&shape, faceGroup, lineGroup, tags, material, name,
triangulate, v); triangulate, v);
faceGroup.clear(); faceGroup.clear();
@@ -2140,7 +2140,7 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
bool ret = exportGroupsToShape(&shape, faceGroup, lineGroup, tags, material, name, bool ret = exportGroupsToShape(&shape, faceGroup, lineGroup, tags, material, name,
triangulate, v); triangulate, v);
// exportFaceGroupToShape return false when `usemtl` is called in the last // exportGroupsToShape return false when `usemtl` is called in the last
// line. // line.
// we also add `shape` to `shapes` when `shape.mesh` has already some // we also add `shape` to `shapes` when `shape.mesh` has already some
// faces(indices) // faces(indices)