Made editing thangs in the level editor not so slow by avoiding calling level.serialize.

This commit is contained in:
Scott Erickson 2014-03-14 11:58:29 -07:00
parent eee4934d1b
commit af8008596a

View file

@ -330,6 +330,7 @@ module.exports = class ThangsTabView extends View
onThangsChanged: (e) =>
@level.set 'thangs', @thangsTreema.data
return if @editThangView
serializedLevel = @level.serialize @supermodel
try
@world.loadFromLevel serializedLevel, false
@ -381,6 +382,8 @@ module.exports = class ThangsTabView extends View
onLevelThangDoneEditing: ->
@removeSubView @editThangView
@editThangView = null
@onThangsChanged()
@$el.find('.thangs-column').show()