mirror of
https://github.com/scurest/apicula.git
synced 2025-06-19 15:15:41 -04:00
Bugfix: fix OOB when using --all-animations
Stupid typo.
This commit is contained in:
parent
ee8d9aac76
commit
3f943bde3e
@ -487,7 +487,7 @@ impl Viewer {
|
|||||||
fn update_object_mats(&mut self) {
|
fn update_object_mats(&mut self) {
|
||||||
if let Some(anim) = self.cur_animation(&self.db) {
|
if let Some(anim) = self.cur_animation(&self.db) {
|
||||||
for i in 0..self.object_mats.len() {
|
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);
|
self.object_mats[i] = anim.objects_curves[i].sample_at(self.anim_state.frame);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user