more informative import warning when a material is missing

metadata
Wenzel Jakob 2010-10-09 13:25:47 +02:00
parent fc01e4485e
commit 2b997ebf42
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ void loadGeometry(std::string prefixName, Transform transform, std::ostream &os,
std::string matID;
if (polylist->getMaterial() == NULL || matLookupTable.find(polylist->getMaterial()) == matLookupTable.end())
SLog(EWarn, "Referenced material could not be found, substituting a lambertian BRDF.");
SLog(EWarn, "Referenced material \"%s\" could not be found, substituting a lambertian BRDF.", polylist->getMaterial());
else
matID = matLookupTable[polylist->getMaterial()];