Fixed bug in timed update cycling.
This commit is contained in:
parent
e9dc716221
commit
a8f40e0771
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue