Skip to content

Commit

Permalink
Set 'idle' as an fallback to correctAnimationName
Browse files Browse the repository at this point in the history
  • Loading branch information
Raltyro authored and charlesisfeline committed Jul 16, 2024
1 parent d8fcad1 commit 6ed0778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/funkin/play/stage/Bopper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class Bopper extends StageProp implements IPlayStateScriptedClass
* @param name The animation name to attempt to correct.
* @param fallback Instead of failing to play, try to play this animation instead.
*/
function correctAnimationName(name:String, ?fallback:String):String
function correctAnimationName(name:String, ?fallback:String = 'idle'):String
{
// If the animation exists, we're good.
if (hasAnimation(name)) return name;
Expand Down

0 comments on commit 6ed0778

Please sign in to comment.