Fixed mark sprite scaling some more.
This commit is contained in:
parent
042fd7ac0d
commit
a8abe8c887
1 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,7 @@ module.exports = class Mark extends CocoClass
|
||||||
if @name is 'debug' or (@name is 'shadow' and @sprite.thang?.shape in ["rectangle", "box"])
|
if @name is 'debug' or (@name is 'shadow' and @sprite.thang?.shape in ["rectangle", "box"])
|
||||||
@mark.rotation = @sprite.thang.rotation * 180 / Math.PI
|
@mark.rotation = @sprite.thang.rotation * 180 / Math.PI
|
||||||
|
|
||||||
updateScale: ->
|
updateScale: (log) ->
|
||||||
if @name is 'bounds' and (@sprite.thang.width isnt @lastWidth or @sprite.thang.height isnt @lastHeight)
|
if @name is 'bounds' and (@sprite.thang.width isnt @lastWidth or @sprite.thang.height isnt @lastHeight)
|
||||||
oldMark = @mark
|
oldMark = @mark
|
||||||
@buildBounds()
|
@buildBounds()
|
||||||
|
@ -243,6 +243,7 @@ module.exports = class Mark extends CocoClass
|
||||||
oldMark.parent.removeChild oldMark
|
oldMark.parent.removeChild oldMark
|
||||||
|
|
||||||
if @markSprite?
|
if @markSprite?
|
||||||
|
@markSprite.scaleFactor = 1.2
|
||||||
@markSprite.updateScale()
|
@markSprite.updateScale()
|
||||||
return unless @name in ["selection", "target", "repair", "highlight"]
|
return unless @name in ["selection", "target", "repair", "highlight"]
|
||||||
if @sprite?.imageObject
|
if @sprite?.imageObject
|
||||||
|
|
Reference in a new issue