Ignore Tr parameter when d exists in MTL(#43)

This commit is contained in:
Syoyo Fujita
2016-12-31 21:05:37 +09:00
parent 4886eebbf4
commit 7c3206f919
5 changed files with 948 additions and 40 deletions

View File

@@ -364,8 +364,14 @@ static bool TestStreamLoadObj() {
std::map<std::string, int>* matMap,
std::string* err) {
(void)matId;
(void)err;
LoadMtl(matMap, materials, &m_matSStream);
std::string warning;
LoadMtl(matMap, materials, &m_matSStream, &warning);
if (!warning.empty()) {
if (err) {
(*err) += warning;
}
}
return true;
}