Explorar el Código

SVGRenderer: remove stroke-linejoin attribute

It does not used if line contains the only segment
Sergey Linev hace 8 años
padre
commit
38371d3191
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      examples/js/renderers/SVGRenderer.js

+ 2 - 2
examples/js/renderers/SVGRenderer.js

@@ -378,9 +378,9 @@ THREE.SVGRenderer = function () {
 
 		var path = 'M' + convert( v1.positionScreen.x ) + ',' + convert( v1.positionScreen.y ) + 'L' + convert( v2.positionScreen.x ) + ',' + convert( v2.positionScreen.y );
 
-		if ( material instanceof THREE.LineBasicMaterial ) {
+		if ( material.isLineBasicMaterial ) {
 
-			var style = 'fill:none;stroke:' + getSvgColor( material.color, material.opacity ) + ';stroke-width:' + material.linewidth + ';stroke-linecap:' + material.linecap + ';stroke-linejoin:' + material.linejoin;
+			var style = 'fill:none;stroke:' + getSvgColor( material.color, material.opacity ) + ';stroke-width:' + material.linewidth + ';stroke-linecap:' + material.linecap;
 
 			addPath( style, path );