Changeset 285
- Timestamp:
- May 26, 2011, 8:51:45 AM (14 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ModificationManager/ModificationManager.vcproj
r284 r285 59 59 <Tool 60 60 Name="VCPreLinkEventTool" 61 Description="" 62 CommandLine="" 61 63 /> 62 64 <Tool … … 92 94 <Tool 93 95 Name="VCPostBuildEventTool" 96 Description="Move Library to OSG_ROOT\lib" 97 CommandLine="move $(OSG_ROOT)\bin\$(ProjectName)d.lib $(OSG_ROOT)\lib" 94 98 /> 95 99 </Configuration> … … 137 141 <Tool 138 142 Name="VCPreLinkEventTool" 143 Description="Move Library to OSG_ROOT\lib" 144 CommandLine="move $(OSG_ROOT)\bin\$(ProjectName).lib $(OSG_ROOT)\lib" 139 145 /> 140 146 <Tool -
experimental/TerrainTest/ReaderWriterTerrainMod.cpp
r284 r285 28 28 options->getBuildKdTreesHint() == Options::BUILD_KDTREES : 29 29 osgDB::Registry::instance()->getBuildKdTreesHint() == Options::BUILD_KDTREES; 30 // TODO: Modify passed option or create option with Options::DO_NOT_BUILD_KDTREES 31 if(!options) 32 options = new osgDB::ReaderWriter::Options(); 33 options->setBuildKdTreesHint(Options::DO_NOT_BUILD_KDTREES); 34 35 30 // Save original KdTree Hint 31 Options::BuildKdTreesHint originalHint = Options::NO_PREFERENCE; 32 if(options) 33 { 34 originalHint = options->getBuildKdTreesHint(); 35 const_cast<osgDB::ReaderWriter::Options*>(options)->setBuildKdTreesHint(Options::DO_NOT_BUILD_KDTREES); 36 } 36 37 37 38 // Load real file … … 51 52 node->accept( modVisitor ); 52 53 53 // Finally create KdTree 54 // Finally create KdTree and restore options 54 55 if(doKdTreeBuilder) 55 56 { 56 OSG_WARN << "Building KdTree" << std::endl;57 57 osg::ref_ptr<osg::KdTreeBuilder> builder = osgDB::Registry::instance()->getKdTreeBuilder(); 58 58 node->accept(*builder); 59 59 } 60 else OSG_WARN << "No KdTree" << std::endl;61 60 // Restore original KdTree Hint 61 if(options) const_cast<osgDB::ReaderWriter::Options*>(options)->setBuildKdTreesHint(originalHint); 62 62 63 63 return node;
Note: See TracChangeset
for help on using the changeset viewer.