nulldesign/nd2d — Issue #37: "Scale value must be greater than zero." error
Author: Morpher
Created: 2011-12-28 14:30:15+00:00
State: open

Sprite2DBatchMaterial.as -> processAndRenderNodes()
I've got an error at this line:
clipSpaceMatrix.appendScale(child.spriteSheet.spriteWidth >> 1, child.spriteSheet.spriteHeight >> 1, 1.0)
I've changed it to this:
clipSpaceMatrix.appendScale(child.spriteSheet.spriteWidth * 0.5, child.spriteSheet.spriteHeight * 0.5, 1.0)
And all works fine now.