Skip to content

Commit 007b110

Browse files
committed
Merge branch 'master' of github.com:syoyo/tinyobjloader
2 parents 7b410a0 + bd1480c commit 007b110

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "pybind11/tools/clang"]
2+
path = pybind11/tools/clang
3+
url = ../../wjakob/clang-cindex-python3

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ mesh_t::num_face_vertices => array of the number of vertices per face(e.g. 3 = t
201201
202202
```
203203

204-
Note that when `triangulate` flas is true in `tinyobj::LoadObj()` argument, `num_face_vertices` are all filled with 3(triangle).
204+
Note that when `triangulate` flag is true in `tinyobj::LoadObj()` argument, `num_face_vertices` are all filled with 3(triangle).
205205

206206
### float data type
207207

@@ -225,7 +225,11 @@ std::string err;
225225

226226
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, inputfile.c_str());
227227

228-
if (!err.empty()) { // `err` may contain warning message.
228+
if (!warn.empty()) {
229+
std::cout << warn << std::endl;
230+
}
231+
232+
if (!err.empty()) {
229233
std::cerr << err << std::endl;
230234
}
231235

pybind11/.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)