Skip to content

Commit 466ffbd

Browse files
committed
Updated builds.
1 parent 33a5394 commit 466ffbd

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

build/three.js

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4130,16 +4130,36 @@ THREE.Box3.prototype = {
41304130

41314131
}
41324132

4133-
} else if ( geometry instanceof THREE.BufferGeometry && geometry.attributes[ 'position' ] !== undefined ) {
4133+
} else if ( geometry instanceof THREE.BufferGeometry ) {
41344134

4135-
var positions = geometry.attributes[ 'position' ].array;
4135+
var attribute = geometry.attributes.position;
41364136

4137-
for ( var i = 0, il = positions.length; i < il; i += 3 ) {
4137+
if ( attribute !== undefined ) {
41384138

4139-
v1.fromArray( positions, i );
4140-
v1.applyMatrix4( node.matrixWorld );
4139+
var array, offset, stride;
41414140

4142-
scope.expandByPoint( v1 );
4141+
if ( attribute instanceof THREE.InterleavedBufferAttribute ) {
4142+
4143+
array = attribute.data.array;
4144+
offset = attribute.offset;
4145+
stride = attribute.data.stride;
4146+
4147+
} else {
4148+
4149+
array = attribute.array;
4150+
offset = 0;
4151+
stride = 3;
4152+
4153+
}
4154+
4155+
for ( var i = offset, il = array.length; i < il; i += stride ) {
4156+
4157+
v1.fromArray( array, i );
4158+
v1.applyMatrix4( node.matrixWorld );
4159+
4160+
scope.expandByPoint( v1 );
4161+
4162+
}
41434163

41444164
}
41454165

@@ -40324,7 +40344,7 @@ THREE.ArrowHelper.prototype.setColor = function ( color ) {
4032440344
*/
4032540345

4032640346
THREE.BoxHelper = function ( object, color ) {
40327-
40347+
4032840348
if ( color === undefined ) color = 0xffff00;
4032940349

4033040350
var indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] );

build/three.min.js

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)