#ifdef'd out the artifical simulation time code
This commit is contained in:
parent
7232a831da
commit
aa339f8e7a
@ -235,6 +235,10 @@ int main( int argc, char **argv )
|
||||
|
||||
viewer.setCameraManipulator(new osgGA::TrackballManipulator());
|
||||
|
||||
#if 0
|
||||
|
||||
// use of custom simulation time.
|
||||
|
||||
viewer.realize();
|
||||
|
||||
double simulationTime = 100.0;
|
||||
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user