mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:23:52 +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:
parent
d42cb4f16d
commit
886b9813ad
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
osg::ref_ptr<osgDB::Options> options = new osgDB::Options;
|
||||||
options->setPluginStringData("fileType", format);
|
options->setPluginStringData("fileType", format);
|
||||||
|
options->setPluginStringData("WriteImageHint", "UseExternal");
|
||||||
|
|
||||||
rw->writeNode(*node, stream, options);
|
rw->writeNode(*node, stream, options);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue