Something changed in OSG 3.6 that makes the command "showscenegraph" less useful; it writes out raw data of images to the debug output file openmw.ogst. This commit adds the hint and restores default behaviour found in OSG 3.4

pull/578/head
Bret Curtis 5 years ago
parent d42cb4f16d
commit 886b9813ad

@ -21,6 +21,7 @@ void SceneUtil::writeScene(osg::Node *node, const std::string& filename, const s
osg::ref_ptr<osgDB::Options> options = new osgDB::Options;
options->setPluginStringData("fileType", format);
options->setPluginStringData("WriteImageHint", "UseExternal");
rw->writeNode(*node, stream, options);
}

Loading…
Cancel
Save