提交 c63ee06f 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11884 from proteamer/dev

Fixed display dashed lines in SVG renderer #11879
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册