From ea3b08526d499a4f5c619c7106669fffd62489a5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 9 Feb 2009 21:53:18 +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. " Merged from svn/trunk. --- 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); + } } } }