Skip to content

Commit

Permalink
Merge pull request #11493 from Mugen87/examples
Browse files Browse the repository at this point in the history
Examples: Simplify webgl_buffergeometry_lines_indexed
  • Loading branch information
mrdoob authored Jun 11, 2017
2 parents 28ba5ed + 61cad9b commit e0e8441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/webgl_buffergeometry_lines_indexed.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@
);
// --------------------------------

geometry.setIndex( new THREE.BufferAttribute( new Uint16Array( indices_array ), 1 ) );
geometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( positions ), 3 ) );
geometry.addAttribute( 'color', new THREE.BufferAttribute( new Float32Array( colors ), 3 ) );
geometry.setIndex( indices_array );
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( positions, 3 ) );
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
geometry.computeBoundingSphere();

mesh = new THREE.LineSegments( geometry, material );
Expand Down

0 comments on commit e0e8441

Please sign in to comment.