diff options
Diffstat (limited to 'js/tools/LineTool.js')
-rwxr-xr-x | js/tools/LineTool.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 413c0302..f9f2f817 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -244,7 +244,11 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
244 | { | 244 | { |
245 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); | 245 | strokeMaterial = Object.create(MaterialsModel.getMaterial(strokeM)); |
246 | } | 246 | } |
247 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; | 247 | if (strokeMaterial && this.options.stroke.color && (strokeMaterial.gradientType === this.options.stroke.color.gradientMode)) { |
248 | strokeColor = {gradientMode:strokeMaterial.gradientType, color:this.options.stroke.color.stops}; | ||
249 | } else { | ||
250 | strokeColor = ShapesController.getMaterialColor(strokeM) || strokeColor; | ||
251 | } | ||
248 | } | 252 | } |
249 | 253 | ||
250 | var world = this.getGLWorld(canvas, this.options.use3D); | 254 | var world = this.getGLWorld(canvas, this.options.use3D); |