Browse Source

SVGLoader : correction for sweep_flag

Nicolas Debeissat 7 years ago
parent
commit
3141eb5b06
1 changed files with 1 additions and 2 deletions
  1. 1 2
      examples/js/loaders/SVGLoader.js

+ 1 - 2
examples/js/loaders/SVGLoader.js

@@ -433,9 +433,8 @@ THREE.SVGLoader.prototype = {
 			var theta = svgAngle( 1, 0, ( x1p - cxp ) / rx, ( y1p - cyp ) / ry );
 			var delta = svgAngle( ( x1p - cxp ) / rx, ( y1p - cyp ) / ry, ( - x1p - cxp ) / rx, ( - y1p - cyp ) / ry );
 			delta = delta % ( Math.PI * 2 );
-			if ( ! sweep_flag ) delta -= 2 * Math.PI;
 
-			path.currentPath.absellipse( cx, cy, rx, ry, theta, theta + delta, theta + delta < theta, x_axis_rotation );
+			path.currentPath.absellipse( cx, cy, rx, ry, theta, theta + delta, sweep_flag === 0, x_axis_rotation );
 
 		}