Display unhandled materials in debug mode

This commit is contained in:
Vincent Lejeune 2014-01-25 01:38:01 +01:00
parent c994ed720d
commit 1fa0a9e9cc
2 changed files with 7 additions and 4 deletions

View File

@ -185,8 +185,10 @@ void STKAnimatedMesh::render()
}
else
{
driver->setMaterial(material);
driver->drawMeshBuffer(mb);
#ifdef DEBUG
Log::warn("material", "Unhandled (animated) material type : %d", material.MaterialType);
#endif
continue;
}
}
}

View File

@ -937,8 +937,9 @@ void STKMesh::render()
}
if (!isObject(material.MaterialType))
{
driver->setMaterial(material);
driver->drawMeshBuffer(mb);
#ifdef DEBUG
Log::warn("material", "Unhandled (static) material type : %d", material.MaterialType);
#endif
continue;
}