Update OBJWriterNodeVisitor.cpp

This commit is contained in:
Long Huan
2019-07-17 15:07:38 +08:00
committed by Robert Osfield
parent acac960227
commit c6c49c3745

View File

@@ -526,7 +526,7 @@ void OBJWriterNodeVisitor::processStateSet(osg::StateSet* ss)
if (mat || tex)
{
_materialMap.insert(std::make_pair(osg::ref_ptr<osg::StateSet>(ss), OBJMaterial(mat, tex)));
_materialMap.insert(std::make_pair(osg::ref_ptr<osg::StateSet>(ss), OBJMaterial(mat, tex, _options)));
_fout << "usemtl " << _materialMap[ss].name << std::endl;
}