From 8811349d2b1094db586b4f925ff057faab7c4017 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Mon, 16 Nov 2015 20:35:30 -0500 Subject: [PATCH] Updated builds. --- build/three.js | 4 +++- build/three.min.js | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build/three.js b/build/three.js index 3055805390..f8d8b83216 100644 --- a/build/three.js +++ b/build/three.js @@ -9465,6 +9465,8 @@ THREE.InterleavedBuffer.prototype = { this.stride = source.stride; this.dynamic = source.dynamic; + return this; + }, copyAt: function ( index1, attribute, index2 ) { @@ -9557,7 +9559,7 @@ THREE.InterleavedBufferAttribute.prototype = { get count() { - return this.data.array.length / this.data.stride; + return this.data.count; }, diff --git a/build/three.min.js b/build/three.min.js index 9cd3983482..8fdfa76ed8 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -197,12 +197,12 @@ THREE.Int8Attribute=function(a,b){return new THREE.BufferAttribute(new Int8Array THREE.Int32Attribute=function(a,b){return new THREE.BufferAttribute(new Int32Array(a),b)};THREE.Uint32Attribute=function(a,b){return new THREE.BufferAttribute(new Uint32Array(a),b)};THREE.Float32Attribute=function(a,b){return new THREE.BufferAttribute(new Float32Array(a),b)};THREE.Float64Attribute=function(a,b){return new THREE.BufferAttribute(new Float64Array(a),b)}; THREE.DynamicBufferAttribute=function(a,b){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.");return(new THREE.BufferAttribute(a,b)).setDynamic(!0)};THREE.InstancedBufferAttribute=function(a,b,c){THREE.BufferAttribute.call(this,a,b);this.meshPerAttribute=c||1};THREE.InstancedBufferAttribute.prototype=Object.create(THREE.BufferAttribute.prototype);THREE.InstancedBufferAttribute.prototype.constructor=THREE.InstancedBufferAttribute; THREE.InstancedBufferAttribute.prototype.copy=function(a){THREE.BufferAttribute.prototype.copy.call(this,a);this.meshPerAttribute=a.meshPerAttribute;return this};THREE.InterleavedBuffer=function(a,b){this.uuid=THREE.Math.generateUUID();this.array=a;this.stride=b;this.dynamic=!1;this.updateRange={offset:0,count:-1};this.version=0}; -THREE.InterleavedBuffer.prototype={constructor:THREE.InterleavedBuffer,get length(){return this.array.length},get count(){return this.array.length/this.stride},set needsUpdate(a){!0===a&&this.version++},setDynamic:function(a){this.dynamic=a;return this},copy:function(a){this.array=new a.array.constructor(a.array);this.stride=a.stride;this.dynamic=a.dynamic},copyAt:function(a,b,c){a*=this.stride;c*=b.stride;for(var d=0,e=this.stride;d