diff --git a/lib/src/godot_classes/animator_controller.rs b/lib/src/godot_classes/animator_controller.rs index 3af37bb9..1e174aa9 100644 --- a/lib/src/godot_classes/animator_controller.rs +++ b/lib/src/godot_classes/animator_controller.rs @@ -207,8 +207,10 @@ impl MultipleAnimationController { self.current_time.remove(&anim.clip); } else { let time = self.base().get(anim_state.time_param_ref_str.clone()); - self.current_time - .insert(anim.clip.clone(), time.to::()); + if let Ok(time) = time.try_to::() { + self.current_time + .insert(anim.clip.clone(), time); + } } self.playing_anims.remove(&anim.clip);