Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tiny_obj_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ static bool exportFaceGroupToShape(shape_t *shape,
// ???
continue;
}

size_t ovi = size_t(
remainingFace.vertex_indices[idx]
.v_idx);
Expand Down Expand Up @@ -1739,6 +1739,13 @@ bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
std::string baseDir;
if (mtl_basedir) {
baseDir = mtl_basedir;
#ifndef _WIN32
const char dirsep = '/';
#else
const char dirsep = '\\';
#endif
if (baseDir[baseDir.length() - 1] != dirsep)
baseDir += dirsep;
}
MaterialFileReader matFileReader(baseDir);

Expand Down