Bugfix: fix OOB when using --all-animations

Stupid typo.
This commit is contained in:
scurest 2020-01-31 17:06:02 -06:00
parent ee8d9aac76
commit 3f943bde3e

View File

@ -487,7 +487,7 @@ impl Viewer {
fn update_object_mats(&mut self) {
if let Some(anim) = self.cur_animation(&self.db) {
for i in 0..self.object_mats.len() {
if i > anim.objects_curves.len() { break }
if i >= anim.objects_curves.len() { break }
self.object_mats[i] = anim.objects_curves[i].sample_at(self.anim_state.frame);
}
} else {