diff options
author | Pushkar Joshi | 2012-05-21 08:40:40 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-05-21 08:40:40 -0700 |
commit | 11cfa9ef2871002b600f1c18f4e06e55a826163c (patch) | |
tree | 381b23b0fa86cdf283a0da7a1b7d532a94e89db4 /js/tools/PenTool.js | |
parent | 4cb3612c9a67f4020d2949b5e5e5d84a90017974 (diff) | |
parent | c37a876b373ddc7cb19277aaeaa6bb2d2d5a50ac (diff) | |
download | ninja-11cfa9ef2871002b600f1c18f4e06e55a826163c.tar.gz |
Merge branch 'master' into pentool
Diffstat (limited to 'js/tools/PenTool.js')
-rwxr-xr-x | js/tools/PenTool.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index 0cfc9331..cc8ec394 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -315,7 +315,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
315 | this._selectedSubpath.setStrokeWidth(strokeSize); | 315 | this._selectedSubpath.setStrokeWidth(strokeSize); |
316 | 316 | ||
317 | var colorArray=[]; | 317 | var colorArray=[]; |
318 | var color = this.application.ninja.colorController.colorToolbar.stroke.color; | 318 | var color = this.options.stroke.color; |
319 | if (color){ | 319 | if (color){ |
320 | colorArray = [color.r/255, color.g/255, color.b/255, color.a]; | 320 | colorArray = [color.r/255, color.g/255, color.b/255, color.a]; |
321 | }else { | 321 | }else { |
@@ -323,7 +323,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
323 | } | 323 | } |
324 | this._selectedSubpath.setStrokeColor(colorArray); | 324 | this._selectedSubpath.setStrokeColor(colorArray); |
325 | 325 | ||
326 | color = this.application.ninja.colorController.colorToolbar.fill.color; | 326 | color = this.options.fill.color; |
327 | if (color){ | 327 | if (color){ |
328 | colorArray = [color.r/255, color.g/255, color.b/255, color.a]; | 328 | colorArray = [color.r/255, color.g/255, color.b/255, color.a]; |
329 | } else { | 329 | } else { |
@@ -701,7 +701,7 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
701 | var strokeColor = subpath.getStrokeColor(); | 701 | var strokeColor = subpath.getStrokeColor(); |
702 | newCanvas.elementModel.shapeModel.stroke = strokeColor; | 702 | newCanvas.elementModel.shapeModel.stroke = strokeColor; |
703 | if(strokeColor) { | 703 | if(strokeColor) { |
704 | newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | 704 | newCanvas.elementModel.shapeModel.border = this.options.stroke; |
705 | } | 705 | } |
706 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; | 706 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; |
707 | newCanvas.elementModel.shapeModel.useWebGl = false;//this.options.use3D; | 707 | newCanvas.elementModel.shapeModel.useWebGl = false;//this.options.use3D; |