forgot material indirection for polylist imports
parent
6e181dcab3
commit
4044fad4da
|
@ -396,7 +396,7 @@ void loadGeometry(std::string prefixName, Transform transform, std::ostream &os,
|
|||
if (polylist->getMaterial() == NULL || matLookupTable.find(polylist->getMaterial()) == matLookupTable.end())
|
||||
SLog(EWarn, "Referenced material could not be found, substituting a lambertian BRDF.");
|
||||
else
|
||||
matID = polylist->getMaterial();
|
||||
matID = matLookupTable[polylist->getMaterial()];
|
||||
|
||||
writeGeometry(prefixName, identifier, geomIndex, matID, transform, os, data, meshesDir);
|
||||
delete data;
|
||||
|
|
Loading…
Reference in New Issue