1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 08:15:37 +00:00

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

This commit is contained in:
Bret Curtis 2020-04-27 11:40:49 +02:00
parent d42cb4f16d
commit 886b9813ad

View file

@ -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);
}