From b51f51f636e946e151cd7ca4f59df078edb071d1 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 16 Mar 2014 21:48:28 -0700 Subject: [PATCH] Fix for no Camera for creating Marks in the Thang Editor. --- app/lib/surface/CocoSprite.coffee | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/lib/surface/CocoSprite.coffee b/app/lib/surface/CocoSprite.coffee index 787eeda32..9fe0b45a1 100644 --- a/app/lib/surface/CocoSprite.coffee +++ b/app/lib/surface/CocoSprite.coffee @@ -258,8 +258,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass if (@thang.scaleFactor or 1) isnt @targetScaleFactor createjs.Tween.removeTweens(@) createjs.Tween.get(@).to({scaleFactor:@thang.scaleFactor or 1}, 2000, createjs.Ease.elasticOut) - @targetScaleFactor = @thang.scaleFactor - + @targetScaleFactor = @thang.scaleFactor + updateAlpha: -> @imageObject.alpha = if @hiding then 0 else 1 return unless @thang?.alpha? @@ -418,6 +418,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass pos createMarks: -> + return unless @options.camera if @thang allProps = [] allProps = allProps.concat (@thang.hudProperties ? []) @@ -437,9 +438,9 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass @marks.repair?.toggle @thang?.errorsOut if @selected - @marks.voiceradius?.toggle true - @marks.visualradius?.toggle true - @marks.attackradius?.toggle true + @marks.voiceradius?.toggle true + @marks.visualradius?.toggle true + @marks.attackradius?.toggle true else @marks.voiceradius?.toggle false @marks.visualradius?.toggle false