mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Fixed a little bit of spritesheet rebuilding cleanup.
This commit is contained in:
parent
1f7d098b2e
commit
e38f26a8d0
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ module.exports = class Mark extends CocoClass
|
|||
onLayerMadeSpriteSheet: ->
|
||||
return unless @sprite
|
||||
# rebuild sprite for new sprite sheet
|
||||
@layer.removeChild @sprite
|
||||
@sprite = null
|
||||
@build()
|
||||
@layer.addChild @sprite
|
||||
|
|
Loading…
Add table
Reference in a new issue