Changeset 12057 for OpenSceneGraph/trunk/examples/osgterrain/osgterrain.cpp
- Timestamp:
- 12/23/10 10:59:35 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgterrain/osgterrain.cpp
r11992 r12057 199 199 } 200 200 201 osg::ref_ptr<osgTerrain::Terrain> terrain = findTopMostNodeOfType<osgTerrain::Terrain>(rootnode );201 osg::ref_ptr<osgTerrain::Terrain> terrain = findTopMostNodeOfType<osgTerrain::Terrain>(rootnode.get()); 202 202 if (!terrain) 203 203 { … … 206 206 207 207 // if CoordinateSystemNode is present copy it's contents into the Terrain, and discard it. 208 osg::CoordinateSystemNode* csn = findTopMostNodeOfType<osg::CoordinateSystemNode>(rootnode );;208 osg::CoordinateSystemNode* csn = findTopMostNodeOfType<osg::CoordinateSystemNode>(rootnode.get()); 209 209 if (csn) 210 210 { … … 228 228 229 229 // register our custom handler for adjust Terrain settings 230 viewer.addEventHandler(new TerrainHandler(terrain ));230 viewer.addEventHandler(new TerrainHandler(terrain.get())); 231 231 232 232 // add a viewport to the viewer and attach the scene graph.
