Skip to content

Commit

Permalink
Fixed display dashed lines in SVG renderer #11879
Browse files Browse the repository at this point in the history
  • Loading branch information
proteamer committed Aug 3, 2017
1 parent e617433 commit 2d113a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/js/renderers/SVGRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ THREE.SVGRenderer = function () {

var style = 'fill:none;stroke:' + getSvgColor( material.color, material.opacity ) + ';stroke-width:' + material.linewidth + ';stroke-linecap:' + material.linecap;

addPath( style, path );
if ( material.isLineDashedMaterial ) {

} else if ( material.isLineDashedMaterial ) {
style = style + ';stroke-dasharray:' + material.dashSize + "," + material.gapSize;

var style = 'fill:none;stroke:' + getSvgColor( material.color, material.opacity ) + ';stroke-width:' + material.linewidth + ';stroke-dasharray:' + material.dashSize + "," + material.gapSize;
}

addPath( style, path );

Expand Down

0 comments on commit 2d113a4

Please sign in to comment.