fix freeze on anims that were both looping and ending at time=0.
This fix the reported animation freeze, if more are found, please report to me
This commit is contained in:
parent
cbd7012612
commit
416ad66b4b
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ void animated<T,T_void_value>::update_last_draw_time()
|
|||
}
|
||||
if(cycles_) {
|
||||
while(get_animation_time() > get_end_time()){ // cut extra time
|
||||
start_tick_ += static_cast<int>(get_end_time()/acceleration_);
|
||||
start_tick_ += static_cast<int>(get_animation_duration()/acceleration_);
|
||||
current_frame_key_ = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue