Skip to content

Commit 0d760a2

Browse files
author
simonThiele
committed
use setIndex for index attributes in test
1 parent bfa2cc7 commit 0d760a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/geometry/EdgesGeometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function createIndexedBufferGeometry ( vertList, idxList ) {
152152

153153
vertices = vertices.subarray( 0, 3 * numVerts );
154154

155-
geom.addAttribute( 'index', new THREE.BufferAttribute( indices, 1 ) );
155+
geom.setIndex( new THREE.BufferAttribute( indices, 1 ) );
156156
geom.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
157157

158158
geom.computeFaceNormals();

0 commit comments

Comments
 (0)