quellus / GDTuber

A dynamic PNGTuber program made in Godot
MIT License
16 stars 11 forks source link

[Bug]: Crash when disabling bounce while talking #66

Closed quellus closed 1 month ago

quellus commented 1 month ago

Describe the bug?

If bounce is disabled while talking, the program crashes.

To Reproduce

  1. Have an avatar with bouncing enabled
  2. Set threshold and make noise so avatar is constantly bouncing
  3. Disable bouncing on the avatar
  4. Program crashes

Expected behavior

Avatar should stop bouncing and the program should continue running

Screenshots

No response

Godot Version

4.2.2

What Platforms does this occur on?

Windows

Additional Context

This likely happens because the animator is deleted when bouncing is disabled, so when we try to stop the animation later, we're making calls to the animator that no longer exists.