mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-19 17:39:56 -04:00
Fixed #951. The parser was removing the shadow shape but not the tween of the shadow.
This commit is contained in:
parent
2bbda206e7
commit
09a47cc5d8
1 changed files with 3 additions and 1 deletions
|
@ -379,7 +379,9 @@ module.exports = class SpriteParser
|
|||
argsSource = argsSource.replace(/cjs(.+)\)/, '"createjs$1)"') # turns cjs.Ease.get(0.5)
|
||||
|
||||
args = eval "[#{argsSource}]"
|
||||
if args[0]?.state?[0]?.t?.search?("shape") is 0 and not _.find(localShapes, bn: args[0].state[0].t)
|
||||
shadowTween = args[0]?.search?('shape') is 0 and not _.find(localShapes, bn: args[0])
|
||||
shadowTween = shadowTween or args[0]?.state?[0]?.t?.search?("shape") is 0 and not _.find(localShapes, bn: args[0].state[0].t)
|
||||
if shadowTween
|
||||
console.log "Skipping tween", name, argsSource, args, "from localShapes", localShapes, "presumably because it's a shadow we skipped."
|
||||
return
|
||||
callExpressions.push {n: name, a: args}
|
||||
|
|
Loading…
Reference in a new issue