Skip to content

Commit 11780ed

Browse files
paugitemmanueljl
authored andcommitted
Fix computeMikkTSpaceTangents (mrdoob#25884)
1 parent 17de15b commit 11780ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/utils/BufferGeometryUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function computeMikkTSpaceTangents( geometry, MikkTSpace, negateSign = true ) {
2929

3030
if ( attribute.normalized || attribute.isInterleavedBufferAttribute ) {
3131

32-
const dstArray = new Float32Array( attribute.getCount() * attribute.itemSize );
32+
const dstArray = new Float32Array( attribute.count * attribute.itemSize );
3333

34-
for ( let i = 0, j = 0; i < attribute.getCount(); i ++ ) {
34+
for ( let i = 0, j = 0; i < attribute.count; i ++ ) {
3535

3636
dstArray[ j ++ ] = attribute.getX( i );
3737
dstArray[ j ++ ] = attribute.getY( i );

0 commit comments

Comments
 (0)