Fixed bug in osg::Node::isCullingActive().

Rnabled the automatic selection of the animation path if one is specified
on the commandline in sgv.
This commit is contained in:
Robert Osfield
2002-11-11 08:52:24 +00:00
parent e809955120
commit 6f3e2b681c
2 changed files with 4 additions and 4 deletions

View File

@@ -150,12 +150,12 @@ int main( int argc, char **argv )
osgGA::AnimationPathManipulator *apm = new osgGA::AnimationPathManipulator(pathfile);
if( apm->valid() )
{
viewer.registerCameraManipulator(apm);
//viewer.registerCameraManipulator(apm);
// selecting the animation path manipulator up front seems to disable view frustum
// in a heavy duty way that I'm do understand yet, so I'm commenting out for the
// time being. Simply pressing '4' will get you the animation path working correctly.
//unsigned int no = viewer.registerCameraManipulator(apm);
//viewer.selectCameraManipulator(no);
unsigned int no = viewer.registerCameraManipulator(apm);
viewer.selectCameraManipulator(no);
}
else
delete apm;