Level editor only folds in ThangType components into Thang component configs if the level is type 'hero'.

This commit is contained in:
Scott Erickson 2014-08-29 11:34:32 -07:00
parent 0236ca6fa9
commit f93ef2005e

View file

@ -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