Improves to CullStack.
From M.Grngr. options support for f=switching off internal imagery in .ive files
This commit is contained in:
@@ -60,11 +60,17 @@ class IVEReaderWriter : public ReaderWriter
|
||||
return result;
|
||||
}
|
||||
|
||||
virtual WriteResult writeNode(const Node& node,std::ostream& fout, const osgDB::ReaderWriter::Options*)
|
||||
virtual WriteResult writeNode(const Node& node,std::ostream& fout, const osgDB::ReaderWriter::Options* options)
|
||||
{
|
||||
try
|
||||
{
|
||||
ive::DataOutputStream out(&fout);
|
||||
|
||||
if (options)
|
||||
{
|
||||
out.setIncludeImageData(options->getOptionString().find("noTexturesInIVEFile")==std::string::npos);
|
||||
osg::notify(osg::DEBUG_INFO) << "ive::DataOutpouStream.setIncludeImageData()=" << out.getIncludeImageData() << std::endl;
|
||||
}
|
||||
|
||||
out.writeNode(const_cast<osg::Node*>(&node));
|
||||
return WriteResult::FILE_SAVED;
|
||||
|
||||
Reference in New Issue
Block a user