Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 860a599

Browse files
committed
SVGLoader: Fix setting first path point after multiple moveTo commands
1 parent 75664cb commit 860a599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/loaders/SVGLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class SVGLoader extends Loader {
248248

249249
}
250250

251-
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
251+
if ( j === 0 ) firstPoint.copy( point );
252252

253253
}
254254

@@ -440,7 +440,7 @@ class SVGLoader extends Loader {
440440

441441
}
442442

443-
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
443+
if ( j === 0 ) firstPoint.copy( point );
444444

445445
}
446446

0 commit comments

Comments
 (0)