Changeset 152 for osgVisual/src/distortion
- Timestamp:
- Nov 9, 2010, 10:56:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/distortion/visual_distortion.cpp
r151 r152 44 44 // Init XML 45 45 xmlDoc* tmpDoc; 46 xmlNode* config = util::getModuleXMLConfig( configFileName, "distortion", tmpDoc ); 46 bool disabled; 47 xmlNode* config = util::getModuleXMLConfig( configFileName, "distortion", tmpDoc, disabled ); 48 49 if( disabled) 50 { 51 OSG_NOTIFY( osg::ALWAYS ) << "..disabled by XML configuration file." << std::endl; 52 return false; 53 } 47 54 48 55 // extract configuration values 49 56 if(config) 50 57 { 51 OSG_NOTIFY( osg::ALWAYS ) << " Using distortion." << std::endl;58 OSG_NOTIFY( osg::ALWAYS ) << "..using distortion." << std::endl; 52 59 53 60 xmlNode* a_node = config->children; … … 164 171 else 165 172 { 166 OSG_WARN << " WARNING: visual_distortion::processXMLConfiguration() - Module configuration not found or module disabled!" << std::endl;173 OSG_WARN << "ERROR: visual_distortion::processXMLConfiguration() - Module configuration not found" << std::endl; 167 174 return false; 168 175 } … … 175 182 osg::Group* visual_distortion::initialize(osg::Group* subgraph, const osg::Vec4& clearColor ) 176 183 { 177 OSG_NOTIFY (osg::ALWAYS ) << "visual_distortion initialize.. ." << std::endl;184 OSG_NOTIFY (osg::ALWAYS ) << "visual_distortion initialize.."; // The sentence is finished by the init result... 178 185 179 186 // Initialize variables:
Note: See TracChangeset
for help on using the changeset viewer.