From 886b9813ad3fb92703667b393817d6ca4972db3d Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Mon, 27 Apr 2020 11:40:49 +0200 Subject: [PATCH] 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 --- components/sceneutil/writescene.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/sceneutil/writescene.cpp b/components/sceneutil/writescene.cpp index 19e8dd73b5..6be963ef2e 100644 --- a/components/sceneutil/writescene.cpp +++ b/components/sceneutil/writescene.cpp @@ -21,6 +21,7 @@ void SceneUtil::writeScene(osg::Node *node, const std::string& filename, const s osg::ref_ptr options = new osgDB::Options; options->setPluginStringData("fileType", format); + options->setPluginStringData("WriteImageHint", "UseExternal"); rw->writeNode(*node, stream, options); }