Browse Source

use setIndex for index attributes in test

simonThiele 9 years ago
parent
commit
0d760a26b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/unit/geometry/EdgesGeometry.js

+ 1 - 1
test/unit/geometry/EdgesGeometry.js

@@ -152,7 +152,7 @@ function createIndexedBufferGeometry ( vertList, idxList ) {
 
 	vertices = vertices.subarray( 0, 3 * numVerts );
 
-	geom.addAttribute( 'index', new THREE.BufferAttribute( indices, 1 ) );
+	geom.setIndex( new THREE.BufferAttribute( indices, 1 ) );
 	geom.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
 
 	geom.computeFaceNormals();