Update OBJWriterNodeVisitor.cpp

This commit is contained in:
Long Huan 2019-07-17 15:07:38 +08:00
parent 3008b953e9
commit 59e372b05d

View File

@ -521,7 +521,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;
}