Skip to content

Commit 163f3ac

Browse files
committed
Updated builds.
1 parent 0cdba69 commit 163f3ac

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

build/three.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10722,7 +10722,7 @@ THREE.BufferGeometry.prototype = {
1072210722
if ( name === 'index' ) {
1072310723

1072410724
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
10725-
this.addIndex( attribute );
10725+
this.setIndex( attribute );
1072610726

1072710727
}
1072810728

@@ -11163,7 +11163,7 @@ THREE.BufferGeometry.prototype = {
1116311163

1116411164
var TypeArray = geometry.vertices.length > 65535 ? Uint32Array : Uint16Array;
1116511165
var indices = new TypeArray( geometry.indices.length * 3 );
11166-
this.addIndex( new THREE.BufferAttribute( indices, 1 ).copyIndicesArray( geometry.indices ) );
11166+
this.setIndex( new THREE.BufferAttribute( indices, 1 ).copyIndicesArray( geometry.indices ) );
1116711167

1116811168
}
1116911169

@@ -11626,7 +11626,7 @@ THREE.BufferGeometry.prototype = {
1162611626

1162711627
if ( index !== null ) {
1162811628

11629-
this.addIndex( index.clone() );
11629+
this.setIndex( index.clone() );
1163011630

1163111631
}
1163211632

@@ -11700,7 +11700,7 @@ THREE.InstancedBufferGeometry.prototype.copy = function ( source ) {
1170011700

1170111701
if ( index !== null ) {
1170211702

11703-
this.addIndex( index.clone() );
11703+
this.setIndex( index.clone() );
1170411704

1170511705
}
1170611706

@@ -13720,7 +13720,7 @@ THREE.BufferGeometryLoader.prototype = {
1372013720
if ( index !== undefined ) {
1372113721

1372213722
var typedArray = new self[ index.type ]( index.array );
13723-
geometry.addIndex( new THREE.BufferAttribute( typedArray, 1 ) );
13723+
geometry.setIndex( new THREE.BufferAttribute( typedArray, 1 ) );
1372413724

1372513725
}
1372613726

@@ -18062,7 +18062,7 @@ THREE.Sprite = ( function () {
1806218062
var uvs = new Float32Array( [ 0, 0, 1, 0, 1, 1, 0, 1 ] );
1806318063

1806418064
var geometry = new THREE.BufferGeometry();
18065-
geometry.addIndex( new THREE.BufferAttribute( indices, 1 ) );
18065+
geometry.setIndex( new THREE.BufferAttribute( indices, 1 ) );
1806618066
geometry.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
1806718067
geometry.addAttribute( 'uv', new THREE.BufferAttribute( uvs, 2 ) );
1806818068

@@ -31395,7 +31395,7 @@ THREE.CircleBufferGeometry = function ( radius, segments, thetaStart, thetaLengt
3139531395

3139631396
}
3139731397

31398-
this.addIndex( new THREE.BufferAttribute( new Uint16Array( indices ), 1 ) );
31398+
this.setIndex( new THREE.BufferAttribute( new Uint16Array( indices ), 1 ) );
3139931399
this.addAttribute( 'position', new THREE.BufferAttribute( positions, 3 ) );
3140031400
this.addAttribute( 'normal', new THREE.BufferAttribute( normals, 3 ) );
3140131401
this.addAttribute( 'uv', new THREE.BufferAttribute( uvs, 2 ) );
@@ -32792,7 +32792,7 @@ THREE.PlaneBufferGeometry = function ( width, height, widthSegments, heightSegme
3279232792

3279332793
}
3279432794

32795-
this.addIndex( new THREE.BufferAttribute( indices, 1 ) );
32795+
this.setIndex( new THREE.BufferAttribute( indices, 1 ) );
3279632796
this.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
3279732797
this.addAttribute( 'normal', new THREE.BufferAttribute( normals, 3 ) );
3279832798
this.addAttribute( 'uv', new THREE.BufferAttribute( uvs, 2 ) );
@@ -33064,7 +33064,7 @@ THREE.SphereBufferGeometry = function ( radius, widthSegments, heightSegments, p
3306433064

3306533065
}
3306633066

33067-
this.addIndex( new THREE.BufferAttribute( new Uint16Array( indices ), 1 ) );
33067+
this.setIndex( new THREE.BufferAttribute( new Uint16Array( indices ), 1 ) );
3306833068
this.addAttribute( 'position', positions );
3306933069
this.addAttribute( 'normal', normals );
3307033070
this.addAttribute( 'uv', uvs );
@@ -34603,7 +34603,7 @@ THREE.BoxHelper = function ( object ) {
3460334603
var positions = new Float32Array( 8 * 3 );
3460434604

3460534605
var geometry = new THREE.BufferGeometry();
34606-
geometry.addIndex( new THREE.BufferAttribute( indices, 1 ) );
34606+
geometry.setIndex( new THREE.BufferAttribute( indices, 1 ) );
3460734607
geometry.addAttribute( 'position', new THREE.BufferAttribute( positions, 3 ) );
3460834608

3460934609
THREE.LineSegments.call( this, geometry, new THREE.LineBasicMaterial( { color: 0xffff00 } ) );

0 commit comments

Comments
 (0)