Skip to content

Commit 9ba60da

Browse files
committed
Updated builds.
1 parent bbc3ea2 commit 9ba60da

File tree

2 files changed

+29
-34
lines changed

2 files changed

+29
-34
lines changed

build/three.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8366,6 +8366,7 @@ THREE.Object3D.prototype = {
83668366
var isRootObject = ( meta === undefined );
83678367

83688368
var data = {};
8369+
var output = { object: data };
83698370

83708371
// meta is a hash used to collect geometries, materials.
83718372
// not providing it implies that this is the root object
@@ -8380,7 +8381,7 @@ THREE.Object3D.prototype = {
83808381
images: {}
83818382
};
83828383

8383-
data.metadata = {
8384+
output.metadata = {
83848385
version: 4.4,
83858386
type: 'Object',
83868387
generator: 'Object3D.toJSON'
@@ -8411,8 +8412,6 @@ THREE.Object3D.prototype = {
84118412

84128413
}
84138414

8414-
var output = {};
8415-
84168415
if ( isRootObject ) {
84178416

84188417
var geometries = extractFromCache( meta.geometries );
@@ -8427,8 +8426,6 @@ THREE.Object3D.prototype = {
84278426

84288427
}
84298428

8430-
output.object = data;
8431-
84328429
return output;
84338430

84348431
// extract data from the cache hash
@@ -10724,6 +10721,8 @@ THREE.BufferGeometry.prototype = {
1072410721
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
1072510722
this.setIndex( attribute );
1072610723

10724+
return;
10725+
1072710726
}
1072810727

1072910728
this.attributes[ name ] = attribute;
@@ -20433,11 +20432,7 @@ THREE.WebGLRenderer = function ( parameters ) {
2043320432

2043420433
if ( index !== null ) {
2043520434

20436-
count = index.count;
20437-
20438-
} else if ( position instanceof THREE.InterleavedBufferAttribute ) {
20439-
20440-
count = position.data.array.length / 3;
20435+
count = index.array.length;
2044120436

2044220437
} else {
2044320438

0 commit comments

Comments
 (0)