Fixed loading marks so they are positioned correctly when they load and the world is paused.

This commit is contained in:
Scott Erickson 2014-03-12 12:43:51 -07:00
parent 7e8f74f385
commit 853a80dd23
2 changed files with 2 additions and 2 deletions
app
lib/surface
views/editor/thang

View file

@ -172,7 +172,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
return if @stillLoading
@updatePosition()
if frameChanged
@updateScale()
@updateScale() # must happen before rotation
@updateAlpha()
@updateRotation()
@updateAction()

View file

@ -270,7 +270,7 @@ module.exports = class ThangTypeEditView extends View
@$el.find('.rotation-label').text " #{value}° "
if @currentSprite
@currentSprite.rotation = value
@currentSprite.update()
@currentSprite.update(true)
updateScale: =>
value = (@scaleSlider.slider('value') + 1) / 10