Fixed build
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14411 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
818e1393ec
commit
2032be209a
@ -253,7 +253,7 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
// run optimization over the scene graph
|
// run optimization over the scene graph
|
||||||
osgUtil::Optimizer optimzer;
|
osgUtil::Optimizer optimzer;
|
||||||
optimzer.optimize(rootnode);
|
optimzer.optimize(rootnode.get());
|
||||||
|
|
||||||
// insert all the callbacks
|
// insert all the callbacks
|
||||||
InsertCallbacksVisitor icv;
|
InsertCallbacksVisitor icv;
|
||||||
@ -264,7 +264,7 @@ int main( int argc, char **argv )
|
|||||||
viewer.getCamera()->setEventCallback(new CameraEventCallback());
|
viewer.getCamera()->setEventCallback(new CameraEventCallback());
|
||||||
|
|
||||||
// set the scene to render
|
// set the scene to render
|
||||||
viewer.setSceneData(rootnode);
|
viewer.setSceneData(rootnode.get());
|
||||||
|
|
||||||
viewer.setCameraManipulator(new osgGA::TrackballManipulator);
|
viewer.setCameraManipulator(new osgGA::TrackballManipulator);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user