From 793f98d6599d42a57f9fd4a05b4637f77a24df46 Mon Sep 17 00:00:00 2001 From: Michael Aschauer Date: Sat, 9 May 2015 21:49:38 +0200 Subject: [PATCH] fix error in showing jump stitches --- stitchcode/stitchcodeChangeSet.js | 8 ++++---- stitchcode/stitchcodeGUI.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stitchcode/stitchcodeChangeSet.js b/stitchcode/stitchcodeChangeSet.js index 353d7d28..5ad5a307 100644 --- a/stitchcode/stitchcodeChangeSet.js +++ b/stitchcode/stitchcodeChangeSet.js @@ -5,9 +5,9 @@ var tStitch = {}; -tStitch.draw_jump = true; +tStitch.draw_jumps = true; tStitch.draw_stitches = true; -tStitch.draw_stitch_len = 3; +tStitch.draw_stitch_len = 2; tStitch.debug_msg = function (st,clear) { o = new String(); @@ -318,8 +318,8 @@ SpriteMorph.prototype.moveBy = function (delta, justMe) { if (tStitch.draw_stitches) { this.drawStitch(this.rotationCenter()); } - if (tStitch.draw_jump && !this.isDown) { - //this.drawJumpLine(origin,this.rotationCenter()); + if (tStitch.draw_jumps && !this.isDown) { + this.drawJumpLine(origin,this.rotationCenter()); } } } diff --git a/stitchcode/stitchcodeGUI.js b/stitchcode/stitchcodeGUI.js index 9699c575..1eeeadfb 100644 --- a/stitchcode/stitchcodeGUI.js +++ b/stitchcode/stitchcodeGUI.js @@ -788,11 +788,11 @@ IDE_Morph.prototype.createStatusDisplay = function () { 'checkbox', null, function () { - //stage.renderer.toggleWireframe(); + tStitch.toogleShowJumpStitches(); }, 'Show Jump Stitches', function () { - return true; //stage.renderer.isWireframeMode + return tStitch.getShowJumpStitches(); }); toogleShowJumpsButton.columns = 2;