fix obj-Plugin export texture file
Fix obj-plugin to support export texture file
This commit is contained in:
committed by
Robert Osfield
parent
da6b4df00a
commit
acac960227
@@ -103,7 +103,7 @@ public:
|
||||
f.precision(localOptions.precision);
|
||||
|
||||
std::string materialFile = osgDB::getNameLessExtension(fileName) + ".mtl";
|
||||
OBJWriterNodeVisitor nv(f, osgDB::getSimpleFileName(materialFile));
|
||||
OBJWriterNodeVisitor nv(f, osgDB::getSimpleFileName(materialFile), options);
|
||||
|
||||
// we must cast away constness
|
||||
(const_cast<osg::Node*>(&node))->accept(nv);
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
|
||||
// writing to a stream does not support materials
|
||||
|
||||
OBJWriterNodeVisitor nv(fout);
|
||||
OBJWriterNodeVisitor nv(fout, "", options);
|
||||
|
||||
// we must cast away constness
|
||||
(const_cast<osg::Node*>(&node))->accept(nv);
|
||||
|
||||
Reference in New Issue
Block a user