diff options
Diffstat (limited to 'js/tools')
-rw-r--r-- | js/tools/BrushTool.js | 6 | ||||
-rwxr-xr-x | js/tools/PenTool.js | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js index d71cc743..1365896a 100644 --- a/js/tools/BrushTool.js +++ b/js/tools/BrushTool.js | |||
@@ -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; |
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js index aa14ea75..7f6f190a 100755 --- a/js/tools/PenTool.js +++ b/js/tools/PenTool.js | |||
@@ -610,12 +610,6 @@ exports.PenTool = Montage.create(ShapeTool, { | |||
610 | newCanvas.elementModel.selection = "Subpath"; | 610 | newCanvas.elementModel.selection = "Subpath"; |
611 | newCanvas.elementModel.pi = "SubpathPi"; | 611 | newCanvas.elementModel.pi = "SubpathPi"; |
612 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; | 612 | newCanvas.elementModel.shapeModel.strokeSize = this.options.strokeSize.value + " " + this.options.strokeSize.units; |
613 | var strokeColor = subpath.getStrokeColor(); | ||
614 | newCanvas.elementModel.shapeModel.stroke = strokeColor; | ||
615 | if(strokeColor) { | ||
616 | newCanvas.elementModel.shapeModel.border = this.application.ninja.colorController.colorToolbar.stroke; | ||
617 | } | ||
618 | newCanvas.elementModel.shapeModel.strokeMaterial = subpath.getStrokeMaterial(); | ||
619 | 613 | ||
620 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; | 614 | newCanvas.elementModel.shapeModel.GLGeomObj = subpath; |
621 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; | 615 | newCanvas.elementModel.shapeModel.useWebGl = this.options.use3D; |