Fixed Thang Editor scaling.

This commit is contained in:
Nick Winter 2014-07-14 14:10:46 -07:00
parent cfeb6c34a4
commit f2f3817e10

View file

@ -285,7 +285,7 @@ module.exports = class ThangTypeEditView extends View
@scale = scaleValue
@$el.find('.scale-label').text " #{fixed}x "
if @currentSprite
@currentSprite.scaleFactor = scaleValue
@currentSprite.scaleFactorX = @currentSprite.scaleFactorY = scaleValue
@currentSprite.updateScale()
else if @currentObject?
@currentObject.scaleX = @currentObject.scaleY = scaleValue / resValue