mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Some bug fixes to get Anya import to work.
This commit is contained in:
parent
b9a978dd13
commit
9ed876d12a
1 changed files with 4 additions and 3 deletions
|
@ -114,9 +114,11 @@ module.exports = class SpriteParser
|
|||
@animationRenamings[shortKey] = name
|
||||
else
|
||||
shortKey = name
|
||||
if @thangType.animations[shortKey]?
|
||||
shortKey = @animationName + ":" + name
|
||||
@thangType.animations[shortKey] = animation
|
||||
@animationLongKeys[longKey] = shortKey
|
||||
@animationRenamings[name] = name
|
||||
@animationRenamings[name] = shortKey
|
||||
return shortKey
|
||||
|
||||
walk: (node, parent, fn) ->
|
||||
|
@ -188,9 +190,8 @@ module.exports = class SpriteParser
|
|||
lastRect = bounds
|
||||
else if arg.type is 'Literal' and arg.value is null
|
||||
bounds = [0, 0, 1, 1] # Let's try this.
|
||||
frameBounds.push bounds
|
||||
frameBounds.push _.clone bounds
|
||||
else
|
||||
console.log "Didn't have multiframe bounds for this movie clip!"
|
||||
frameBounds = [nominalBounds]
|
||||
|
||||
# Subtract half of width/height parsed from lib.properties
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue