mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed bug importing animations into existing ThangTypes that had only containers.
This commit is contained in:
parent
5bde534757
commit
b3964571e1
2 changed files with 5 additions and 2 deletions
|
@ -2,7 +2,10 @@ module.exports = class SpriteParser
|
||||||
constructor: (@thangTypeModel) ->
|
constructor: (@thangTypeModel) ->
|
||||||
# Create a new ThangType, or work with one we've been building
|
# Create a new ThangType, or work with one we've been building
|
||||||
@thangType = _.cloneDeep(@thangTypeModel.attributes.raw)
|
@thangType = _.cloneDeep(@thangTypeModel.attributes.raw)
|
||||||
@thangType ?= {shapes: {}, containers: {}, animations: {}}
|
@thangType ?= {}
|
||||||
|
@thangType.shapes ?= {}
|
||||||
|
@thangType.containers ?= {}
|
||||||
|
@thangType.animations ?= {}
|
||||||
|
|
||||||
# Internal parser state
|
# Internal parser state
|
||||||
@shapeLongKeys = {}
|
@shapeLongKeys = {}
|
||||||
|
|
Loading…
Reference in a new issue