Skip to content

Commit b71d165

Browse files
authored
Merge pull request tinyobjloader#204 from capehill/master
Update README
2 parents 17a6941 + ec8d832 commit b71d165

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

0 commit comments

Comments
 (0)