diff options
author | Jonathan Duran | 2012-04-10 08:13:00 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-04-10 08:13:00 -0700 |
commit | 58e049b68e03abbacde93206d2666361022c0858 (patch) | |
tree | f1ce6b8a378674d4abcac68acd0bcca93b838a39 /js/tools/BrushTool.js | |
parent | a9050f96d814469f420bcf3630d16d576b62258e (diff) | |
parent | bd43ce383b050d03b0f92cc923c517febc66ca28 (diff) | |
download | ninja-58e049b68e03abbacde93206d2666361022c0858.tar.gz |
Merge branch 'refs/heads/NINJAmaster' into TimelineUber
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 2171d2c6..4347658a 100644 --- a/js/tools/BrushTool.js +++ b/js/tools/BrushTool.js | |||
@@ -305,7 +305,7 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
305 | 305 | ||
306 | if (!canvas) { | 306 | if (!canvas) { |
307 | var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); | 307 | var newCanvas = NJUtils.makeNJElement("canvas", "Brushstroke", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); |
308 | var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas); | 308 | var elementModel = TagTool.makeElement(w, h, planeMat, midPt, newCanvas, true); |
309 | ElementMediator.addElements(newCanvas, elementModel.data, false); | 309 | ElementMediator.addElements(newCanvas, elementModel.data, false); |
310 | 310 | ||
311 | // create all the GL stuff | 311 | // create all the GL stuff |
@@ -334,12 +334,6 @@ exports.BrushTool = Montage.create(ShapeTool, { | |||
334 | newCanvas.elementModel.selection = "BrushStroke"; | 334 | newCanvas.elementModel.selection = "BrushStroke"; |
335 | newCanvas.elementModel.pi = "BrushStrokePi"; | 335 | newCanvas.elementModel.pi = "BrushStrokePi"; |
336 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 336 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
337 | var strokeColor = this._selectedBrushStroke.getStrokeColor(); | ||
338 | newCanvas.elementModel.shapeModel.stroke = strokeColor; | ||
339 | if(strokeColor) { | ||
340 | newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
341 | } | ||
342 | newCanvas.elementModel.shapeModel.strokeMaterial = this._selectedBrushStroke.getStrokeMaterial(); | ||
343 | 337 | ||
344 | newCanvas.elementModel.shapeModel.GLGeomObj = brushStroke; | 338 | newCanvas.elementModel.shapeModel.GLGeomObj = brushStroke; |
345 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; | 339 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; |