Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when stopping AnimationPlayer without current animation. #97714

Closed
pmoosi opened this issue Oct 1, 2024 · 0 comments · Fixed by #97760
Closed

Error when stopping AnimationPlayer without current animation. #97714

pmoosi opened this issue Oct 1, 2024 · 0 comments · Fixed by #97760

Comments

@pmoosi
Copy link

pmoosi commented Oct 1, 2024

Tested versions

Reproducible in 4.4 after #91765

System information

Godot v4.4.dev.mono (8c16e67) - Ubuntu 24.04.1 LTS 24.04 on Wayland - X11 display driver, Multi-window, 3 monitors - Vulkan (Forward+) - integrated AMD Radeon Graphics (RADV RENOIR) - AMD Ryzen 7 5800H with Radeon Graphics (16 threads)

Issue description

Calling AnimationPlayer.Stop() when no animation is running results in

E 0:00:00:0349   anim_stop.gd:4 @ _ready(): AnimationPlayer has no current animation.
  <C++ Error>    Parameter "playback.current.from" is null.
  <C++ Source>   scene/animation/animation_player.cpp:737 @ get_section_start_time()
  <Stack Trace>  anim_stop.gd:4 @ _ready()

It looks like the bug was introduced by #91765.

Steps to reproduce

Create a scene with an animation player and call stop().

Minimal reproduction project (MRP)

mrp.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Unassessed
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants