diff options
author | Pushkar Joshi | 2012-03-12 15:02:07 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-03-12 15:02:07 -0700 |
commit | 00b1e6a9bed04172ad84bdd810f1bd999e8fa0eb (patch) | |
tree | 0a5d15487f660a58a574c9d0f19a4b647c1c86ae /js/tools | |
parent | fcab2a14f8de302948d38f55db41e2c1c92baa34 (diff) | |
download | ninja-00b1e6a9bed04172ad84bdd810f1bd999e8fa0eb.tar.gz |
bug fixes for spline interpolation
AND
Laplacian smoothing for denoising
AND
code cleanup (removing blocks of commented code)
Diffstat (limited to 'js/tools')
-rw-r--r-- | js/tools/BrushTool.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js index 9e300554..4ce9976a 100644 --- a/js/tools/BrushTool.js +++ b/js/tools/BrushTool.js | |||
@@ -105,7 +105,7 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
105 | if (this.options.strokeAngle){ | 105 | if (this.options.strokeAngle){ |
106 | strokeAngle= ShapesController.GetValueInPixels(this.options.strokeAngle.value, this.options.strokeAngle.units); | 106 | strokeAngle= ShapesController.GetValueInPixels(this.options.strokeAngle.value, this.options.strokeAngle.units); |
107 | } | 107 | } |
108 | this._selectedBrushStroke.setStrokeAngle(strokeAngle); | 108 | this._selectedBrushStroke.setStrokeAngle(Math.PI * -strokeAngle/180); |
109 | } else { | 109 | } else { |
110 | this._selectedBrushStroke.setStrokeUseCalligraphic(false); | 110 | this._selectedBrushStroke.setStrokeUseCalligraphic(false); |
111 | } | 111 | } |