Commit a5ec6617 authored by Janis Born's avatar Janis Born

ignore valid OBJ keywords if they are not supported by the loader

parent 47806418
......@@ -236,6 +236,28 @@ SharedGeometryData loadGeometryDataFromOBJ(const std::string& _filename, bool _c
indices.push_back(faceIndices[i+1]);
}
}
else if(keyword == "bevel" || keyword == "bmat"
|| keyword == "bsp" || keyword == "bzp"
|| keyword == "c_interp" || keyword == "cdc"
|| keyword == "cdp" || keyword == "con"
|| keyword == "cstype" || keyword == "ctech"
|| keyword == "curv" || keyword == "curv2"
|| keyword == "d_interp" || keyword == "deg"
|| keyword == "end" || keyword == "g"
|| keyword == "hole" || keyword == "lod"
|| keyword == "maplib" || keyword == "mg"
|| keyword == "mtllib" || keyword == "o"
|| keyword == "parm" || keyword == "res"
|| keyword == "s" || keyword == "scrv"
|| keyword == "shadow_obj" || keyword == "sp"
|| keyword == "stech" || keyword == "step"
|| keyword == "surf" || keyword == "trace_obj"
|| keyword == "trim" || keyword == "usemap"
|| keyword == "usemtl" || keyword == "vp")
{
// part of the OBJ specification (i.e. non-polygonal geometry, object groups, etc.)
// is not supported and is silently ignored
}
else
{
warning() << "unknown OBJ keyword ignored: " << keyword << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment