Update OBJWriterNodeVisitor.cpp
This commit is contained in:
committed by
Robert Osfield
parent
acac960227
commit
c6c49c3745
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user