Fixed a small bug with building sprite sheets.

This commit is contained in:
Scott Erickson 2014-01-20 12:55:44 -08:00
parent dad21e0338
commit 3dfe99045b

View file

@ -73,7 +73,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
toString: -> "<CocoSprite: #{@thang?.id}>"
buildSpriteSheet: ->
options = @thang?.getSpriteOptions() or {}
options = @thang?.getSpriteOptions?() or {}
options.colorConfig = @options.colorConfig if @options.colorConfig
options.async = false
@thangType.getSpriteSheet options