finish processInputLine()

This commit is contained in:
Josh Holtrop 2011-04-19 16:43:08 -04:00
parent dffa5a98a5
commit 96737a0386

View File

@ -202,9 +202,25 @@ void WFObj::processInputLine(const std::string & input)
}
else if (type == "usemtl")
{
if (tokens.size() >= 2)
m_current_material_name = tokens[1];
}
else if (type == "mtllib")
{
if (tokens.size() >= 2)
loadMaterial(tokens[1]);
}
else if (type == "s")
{
/* ignore smoothing */
}
else if (type == "g")
{
/* ignore group name */
}
else
{
cerr << "WFObj: warning: unhandled command '" << type << "'" << endl;
}
}