Update README.md

This commit is contained in:
UKABUER
2018-11-30 20:24:14 +08:00
committed by GitHub
parent 1a7aea4ac1
commit 80058fdcb0

View File

@@ -205,8 +205,9 @@ tinyobj::attrib_t attrib;
std::vector<tinyobj::shape_t> shapes;
std::vector<tinyobj::material_t> materials;
std::string warn;
std::string err;
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &err, inputfile.c_str());
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, inputfile.c_str());
if (!err.empty()) { // `err` may contain warning message.
std::cerr << err << std::endl;