From f93ef2005efc4d3059619ca045ab4709bfc7c71e Mon Sep 17 00:00:00 2001 From: Scott Erickson <sderickson@gmail.com> Date: Fri, 29 Aug 2014 11:34:32 -0700 Subject: [PATCH] Level editor only folds in ThangType components into Thang component configs if the level is type 'hero'. --- app/views/editor/level/thangs/LevelThangEditView.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/editor/level/thangs/LevelThangEditView.coffee b/app/views/editor/level/thangs/LevelThangEditView.coffee index 8bc0455e4..42fca453a 100644 --- a/app/views/editor/level/thangs/LevelThangEditView.coffee +++ b/app/views/editor/level/thangs/LevelThangEditView.coffee @@ -42,7 +42,8 @@ module.exports = class LevelThangEditView extends CocoView supermodel: @supermodel level: @level world: @world - thangType: thangType + + if @level.get('type') is 'hero' then options.thangType = thangType @thangComponentEditView = new ThangComponentsEditView options @listenTo @thangComponentEditView, 'components-changed', @onComponentsChanged