diff options
author | Pushkar Joshi | 2012-04-17 14:49:18 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-04-17 14:49:18 -0700 |
commit | df903a01e14134cadf109b733d09c6eadfa3966b (patch) | |
tree | 2351f1c05b2f852053fa0be533072088a9ad4e7c /js/tools/BrushTool.js | |
parent | 036cf034e124dbc1f4893e90f7c6d240904a3faf (diff) | |
parent | cacb4a21825818af392c2949967b0f3c1df509c5 (diff) | |
download | ninja-df903a01e14134cadf109b733d09c6eadfa3966b.tar.gz |
Merge branch 'master' into pentool
Conflicts:
js/tools/PenTool.js
Diffstat (limited to 'js/tools/BrushTool.js')
-rw-r--r-- | js/tools/BrushTool.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js index 620376ab..6cd6858c 100644 --- a/js/tools/BrushTool.js +++ b/js/tools/BrushTool.js | |||
@@ -304,7 +304,7 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
304 | 304 | ||
305 | if (!canvas) { | 305 | if (!canvas) { |
306 | var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); | 306 | var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); |
307 | var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas); | 307 | var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas, true); |
308 | ElementMediator.addElements(newCanvas, elementModel.data, false); | 308 | ElementMediator.addElements(newCanvas, elementModel.data, false); |
309 | 309 | ||
310 | // create all the GL stuff | 310 | // create all the GL stuff |
@@ -333,12 +333,6 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
333 | newCanvas.elementModel.selection = "BrushStroke"; | 333 | newCanvas.elementModel.selection = "BrushStroke"; |
334 | newCanvas.elementModel.pi = "BrushStrokePi"; | 334 | newCanvas.elementModel.pi = "BrushStrokePi"; |
335 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 335 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
336 | var strokeColor = this._selectedBrushStroke.getStrokeColor(); | ||
337 | newCanvas.elementModel.shapeModel.stroke = strokeColor; | ||
338 | if(strokeColor) { | ||
339 | newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
340 | } | ||
341 | newCanvas.elementModel.shapeModel.strokeMaterial = this._selectedBrushStroke.getStrokeMaterial(); | ||
342 | 336 | ||
343 | newCanvas.elementModel.shapeModel.GLGeomObj = brushStroke; | 337 | newCanvas.elementModel.shapeModel.GLGeomObj = brushStroke; |
344 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; | 338 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; |