From 04da5b4714682ca578ac35403f1109bda1ec3fc8 Mon Sep 17 00:00:00 2001 From: Scott Erickson <sderickson@gmail.com> Date: Mon, 19 May 2014 23:02:02 -0700 Subject: [PATCH] Fixed thang avatar view thang loading some more. --- app/views/play/level/thang_avatar_view.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/play/level/thang_avatar_view.coffee b/app/views/play/level/thang_avatar_view.coffee index a1af2102b..88f4110d0 100644 --- a/app/views/play/level/thang_avatar_view.coffee +++ b/app/views/play/level/thang_avatar_view.coffee @@ -21,8 +21,10 @@ module.exports = class ThangAvatarView extends View unless @thangType.isFullyLoaded() or @thangType.loading @thangType.fetch() - - @supermodel.loadModel @thangType, 'thang' + + # couldn't get the level view to load properly through the supermodel + # so just doing it manually this time. + @listenTo @thangType, 'sync', @render getSpriteThangType: -> thangs = @supermodel.getModels(ThangType)