Only reset headbob animation if it is playing when it is not supposed to
This commit is contained in:
@ -313,6 +313,7 @@ func headbob_animation(moving):
|
|||||||
# This code is extremely performant but it makes no sense.
|
# This code is extremely performant but it makes no sense.
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if HEADBOB_ANIMATION.is_playing():
|
||||||
HEADBOB_ANIMATION.play("RESET", 0.25)
|
HEADBOB_ANIMATION.play("RESET", 0.25)
|
||||||
HEADBOB_ANIMATION.speed_scale = 1
|
HEADBOB_ANIMATION.speed_scale = 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user