Browse Source

EdgesHelper: Updated to use BufferAttribute. Fixes #5098.

Mr.doob 11 years ago
parent
commit
e5b1d38e1e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/helpers/EdgesHelper.js

+ 1 - 1
src/extras/helpers/EdgesHelper.js

@@ -48,7 +48,7 @@ THREE.EdgesHelper = function ( object, hex ) {
 
 
 	}
 	}
 
 
-	geometry.addAttribute( 'position', new THREE.Float32Attribute( numEdges * 2 * 3, 3 ) );
+	geometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( numEdges * 2 * 3 ), 3 ) );
 
 
 	var coords = geometry.attributes.position.array;
 	var coords = geometry.attributes.position.array;