Skip to content

Commit fdcf3f5

Browse files
committed
Show warning.
1 parent fb079b7 commit fdcf3f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/obj_sticher/obj_sticher.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,14 @@ int main(int argc, char **argv)
132132

133133
for (int i = 0; i < num_objfiles; i++) {
134134
std::cout << "Loading " << argv[i+1] << " ... " << std::flush;
135-
135+
136136
std::string warn;
137137
std::string err;
138138
bool ret = tinyobj::LoadObj(&attributes[i], &shapes[i], &materials[i], &warn, &err, argv[i+1]);
139+
if (!warn.empty()) {
140+
std::cerr << "WARN:" << warn << std::endl;
141+
}
142+
139143
if (!err.empty()) {
140144
std::cerr << err << std::endl;
141145
}

0 commit comments

Comments
 (0)