From 1710b431a5b9b147d31820ab49743dae6f803137 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 9 Feb 2009 21:48:30 +0000 Subject: [PATCH] From Bryan Thrall, "The .osg plugin doesn't seem to support an option to write shader files separately, so it always inlines them in the .osg file (as far as I can tell). This change adds that ability. " --- src/osgPlugins/osg/ReaderWriterOSG.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgPlugins/osg/ReaderWriterOSG.cpp b/src/osgPlugins/osg/ReaderWriterOSG.cpp index a069c13f8..a1e24f7d4 100644 --- a/src/osgPlugins/osg/ReaderWriterOSG.cpp +++ b/src/osgPlugins/osg/ReaderWriterOSG.cpp @@ -264,6 +264,10 @@ class OSGReaderWriter : public ReaderWriter { fout.setOutputTextureFiles(true); } + if (opt=="OutputShaderFiles") + { + fout.setOutputShaderFiles(true); + } } } }