forgot material indirection for polylist imports

metadata
Wenzel Jakob 2010-08-31 22:55:22 +02:00
parent 6e181dcab3
commit 4044fad4da
1 changed files with 1 additions and 1 deletions

View File

@ -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;