Fixed a bug with the coloring of avatars in the hud.

This commit is contained in:
Scott Erickson 2014-02-20 15:13:15 -08:00
parent eccabd2dc5
commit d9b86b84dc

View file

@ -110,7 +110,7 @@ module.exports = class HUDView extends View
createAvatar: (thangType, thang, colorConfig) -> createAvatar: (thangType, thang, colorConfig) ->
options = thang.getSpriteOptions() or {} options = thang.getSpriteOptions() or {}
options.async = false options.async = false
options.colorConfig = colorConfig options.colorConfig = colorConfig if colorConfig
stage = thangType.getPortraitStage options stage = thangType.getPortraitStage options
wrapper = @$el.find '.thang-canvas-wrapper' wrapper = @$el.find '.thang-canvas-wrapper'
newCanvas = $(stage.canvas).addClass('thang-canvas') newCanvas = $(stage.canvas).addClass('thang-canvas')