mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-02 16:21:01 -04:00
Made editing thangs in the level editor not so slow by avoiding calling level.serialize.
This commit is contained in:
parent
eee4934d1b
commit
af8008596a
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue