Added handling for bad sprite data.

This commit is contained in:
Scott Erickson 2014-11-11 15:25:52 -08:00
parent 0af7b4d5b7
commit d1d6a734b4

View file

@ -115,6 +115,7 @@ module.exports = class SpriteBuilder
if _.isString(childData)
child = @buildShapeFromStore(childData)
else
continue if not childData.gn
child = @buildContainerFromStore(childData.gn)
child.setTransform(childData.t...)
cont.addChild(child)