diff --git a/src/osgViewer/Viewer.cpp b/src/osgViewer/Viewer.cpp index f1171237d..3b4115508 100644 --- a/src/osgViewer/Viewer.cpp +++ b/src/osgViewer/Viewer.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -299,6 +300,15 @@ bool Viewer::readConfiguration(const std::string& filename) //OSG_NOTICE<<"Error: Unable to load configuration file \""<(object.get()); + if (config) + { + OSG_NOTICE<<"Using osgViewer::Config : "<className()<configure(*this); + return true; + } + CompositeViewer* compositeViewer = dynamic_cast(object.get()); if (compositeViewer)