From 3965bf8dd6760b751561fbc01671e32ee765fa38 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 23 Mar 2009 13:51:46 +0000 Subject: [PATCH] From Eric Sokolowsky, "osgviewer (and all other OSG-based utilities) fails to provide help for the OSG_NOTIFY_LEVEL environment variable. This submission fixes that problem." --- src/osg/Notify.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osg/Notify.cpp b/src/osg/Notify.cpp index 522b3db53..d25574f8c 100644 --- a/src/osg/Notify.cpp +++ b/src/osg/Notify.cpp @@ -11,6 +11,7 @@ * OpenSceneGraph Public License for more details. */ #include +#include #include #include #include @@ -18,6 +19,8 @@ using namespace std; +static osg::ApplicationUsageProxy Notify_e0(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE, "OSG_NOTIFY_LEVEL ", "FATAL | WARN | NOTICE | DEBUG_INFO | DEBUG_FP | DEBUG | INFO | ALWAYS"); + osg::NotifySeverity g_NotifyLevel = osg::NOTICE; void osg::setNotifyLevel(osg::NotifySeverity severity)