Skip to content
Browse files

Spritemap.add should allow overwriting of animations

  • Loading branch information...
1 parent bdde107 commit ed43961119e69e9cdbfd6640a0b046781de061d1 @Draknek Draknek committed Apr 5, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 net/flashpunk/graphics/Spritemap.as
View
1 net/flashpunk/graphics/Spritemap.as
@@ -106,7 +106,6 @@
*/
public function add(name:String, frames:Array, frameRate:Number = 0, loop:Boolean = true):Anim
{
- if (_anims[name]) throw new Error("Cannot have multiple animations with the same name");
(_anims[name] = new Anim(name, frames, frameRate, loop))._parent = this;
return _anims[name];
}

0 comments on commit ed43961

Please sign in to comment.
Something went wrong with that request. Please try again.