Skip to content

Commit f18665c

Browse files
committed
The Animation Manager will now emit a console warning if you try and play an animation on a Sprite that doesn't exist.
1 parent 47b1d75 commit f18665c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/animations/AnimationManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ var AnimationManager = new Class({
442442
{
443443
anim.load(child, startFrame);
444444
}
445+
else
446+
{
447+
console.warn('Missing animation: ' + key);
448+
}
445449

446450
return child;
447451
},

0 commit comments

Comments
 (0)