Skip to content

Commit 1c557fd

Browse files
authored
Merge pull request #16044 from WestLangley/dev-uvs_debug
UVsDebug: Fixed incorrectly-labeled face index
2 parents dbbca38 + 3fefb00 commit 1c557fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/utils/UVsDebug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ THREE.UVsDebug = function ( geometry, size ) {
8383
uvs[ 1 ].fromBufferAttribute( uvAttribute, face[ 1 ] );
8484
uvs[ 2 ].fromBufferAttribute( uvAttribute, face[ 2 ] );
8585

86-
processFace( face, uvs, i );
86+
processFace( face, uvs, i / 3 );
8787

8888
}
8989

@@ -101,7 +101,7 @@ THREE.UVsDebug = function ( geometry, size ) {
101101
uvs[ 1 ].fromBufferAttribute( uvAttribute, face[ 1 ] );
102102
uvs[ 2 ].fromBufferAttribute( uvAttribute, face[ 2 ] );
103103

104-
processFace( face, uvs, i );
104+
processFace( face, uvs, i / 3 );
105105

106106
}
107107

0 commit comments

Comments
 (0)