Skip to content

Commit

Permalink
Merge pull request #11884 from proteamer/dev
Browse files Browse the repository at this point in the history
Fixed display dashed lines in SVG renderer #11879
  • Loading branch information
mrdoob authored Aug 3, 2017
2 parents e617433 + 2d113a4 commit c63ee06
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 c63ee06

Please sign in to comment.