mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-14 11:15:24 -05:00
Set 'idle' as an fallback to correctAnimationName
This commit is contained in:
parent
5ea45b4ef7
commit
3df30c259f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue