Skip to content

Commit 303dfc9

Browse files
nieyuyaoAdaRoseCannon
authored andcommitted
fix: update vertices according uv.y when linecap is square (mrdoob#27429)
1 parent b2bc25e commit 303dfc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/jsm/loaders/SVGLoader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3082,7 +3082,8 @@ class SVGLoader extends Loader {
30823082
} else {
30833083

30843084
tempV2_3.toArray( vertices, 1 * 3 );
3085-
tempV2_3.toArray( vertices, 3 * 3 );
3085+
// using tempV2_4 to update 3rd vertex if the uv.y of 3rd vertex is 1
3086+
uvs[ 3 * 2 + 1 ] === 1 ? tempV2_4.toArray( vertices, 3 * 3 ) : tempV2_3.toArray( vertices, 3 * 3 );
30863087
tempV2_4.toArray( vertices, 0 * 3 );
30873088

30883089
}

0 commit comments

Comments
 (0)