Fixed CocoSprite getOffset to not apply scale to registration points.

This commit is contained in:
Nick Winter 2014-03-06 17:21:24 -08:00
parent 5b11e132b2
commit 40e896868b

View file

@ -376,7 +376,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
scale *= @options.resolutionFactor if prop is 'registration'
pos.x *= scale
pos.y *= scale
if @thang
if @thang and prop isnt 'registration'
scaleFactor = @thang.scaleFactor ? 1
pos.x *= @thang.scaleFactorX ? scaleFactor
pos.y *= @thang.scaleFactorY ? scaleFactor