diff options
Diffstat (limited to 'js/tools/LineTool.js')
-rwxr-xr-x | js/tools/LineTool.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 2dbaf593..41458d01 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -268,8 +268,12 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
268 | { | 268 | { |
269 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); | 269 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); |
270 | } | 270 | } |
271 | if (strokeMaterial && this.options.stroke.color && (strokeMaterial.gradientType === this.options.stroke.color.gradientMode)) { | ||
272 | strokeColor = {gradientMode:strokeMaterial.gradientType, color:this.options.stroke.color.stops}; | ||
273 | } else { | ||
271 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; | 274 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; |
272 | } | 275 | } |
276 | } | ||
273 | 277 | ||
274 | var world = this.getGLWorld(canvas, this.options.use3D); | 278 | var world = this.getGLWorld(canvas, this.options.use3D); |
275 | 279 | ||