1
0
Fork 0

Fixed bug in timed update cycling.

This commit is contained in:
david 2002-11-06 16:04:04 +00:00
parent e9dc716221
commit a8f40e0771

View file

@ -507,10 +507,9 @@ TimedAnimation::update ()
float sim_time_sec = globals->get_sim_time_sec();
if ((sim_time_sec - _last_time_sec) >= _duration_sec) {
_last_time_sec = sim_time_sec;
_step++;
if (_step >= getBranch()->getNumKids())
_step = 0;
else
_step++;
((ssgSelector *)getBranch())->selectStep(_step);
}
}