From aa339f8e7ac235dfe63ba590d29b9aa543d706ac Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 25 Jan 2007 12:16:38 +0000 Subject: [PATCH] #ifdef'd out the artifical simulation time code --- examples/osganimate/osganimate.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/osganimate/osganimate.cpp b/examples/osganimate/osganimate.cpp index a30ff9a31..40bdd914b 100644 --- a/examples/osganimate/osganimate.cpp +++ b/examples/osganimate/osganimate.cpp @@ -235,8 +235,12 @@ int main( int argc, char **argv ) viewer.setCameraManipulator(new osgGA::TrackballManipulator()); - viewer.realize(); +#if 0 + // use of custom simulation time. + + viewer.realize(); + double simulationTime = 100.0; while (!viewer.done()) @@ -244,4 +248,13 @@ int main( int argc, char **argv ) viewer.frame(simulationTime); simulationTime -= 0.01; } + + return 0; +#else + + // normal viewer usage. + + return viewer.run(); + +#endif }