We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87e8d26 + e12c120 commit 2a1fc6dCopy full SHA for 2a1fc6d
examples/js/loaders/SVGLoader.js
@@ -403,9 +403,11 @@ THREE.SVGLoader.prototype = {
403
var y = parseFloat( node.getAttribute( 'cy' ) );
404
var r = parseFloat( node.getAttribute( 'r' ) );
405
406
- var path = new THREE.ShapePath();
+ var subpath = new THREE.Path();
407
+ subpath.absarc( x, y, r, 0, Math.PI * 2 );
408
- path.currentPath.absarc( x, y, r, 0, Math.PI * 2 );
409
+ var path = new THREE.ShapePath();
410
+ path.subPaths.push( subpath );
411
412
return path;
413
@@ -418,9 +420,11 @@ THREE.SVGLoader.prototype = {
418
420
var rx = parseFloat( node.getAttribute( 'rx' ) );
419
421
var ry = parseFloat( node.getAttribute( 'ry' ) );
422
423
424
+ subpath.absellipse( x, y, rx, ry, 0, Math.PI * 2 );
425
- path.currentPath.absellipse( x, y, rx, ry, 0, Math.PI * 2 );
426
427
428
429
430
0 commit comments