finish processInputLine()
This commit is contained in:
1 parent
dffa5a98a5
commit
96737a0386
1 file changed
+16
@@ -202,9 +202,25 @@ void WFObj::processInputLine(const std::string & input)
|
|||||||
}
|
}
|
||||||
else if (type == "usemtl")
|
else if (type == "usemtl")
|
||||||
{
|
{
|
||||||
|
if (tokens.size() >= 2)
|
||||||
|
m_current_material_name = tokens[1];
|
||||||
}
|
}
|
||||||
else if (type == "mtllib")
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user