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 return if @stillLoading
@updatePosition() @updatePosition()
if frameChanged if frameChanged
@updateScale() @updateScale() # must happen before rotation
@updateAlpha() @updateAlpha()
@updateRotation() @updateRotation()
@updateAction() @updateAction()

View file

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