فهرست منبع

needsUpdate of buffers is never read from

dubejf 10 سال پیش
والد
کامیت
e27a310afd
2فایلهای تغییر یافته به همراه0 افزوده شده و 18 حذف شده
  1. 0 9
      src/core/BufferAttribute.js
  2. 0 9
      src/core/InterleavedBuffer.js

+ 0 - 9
src/core/BufferAttribute.js

@@ -9,7 +9,6 @@ THREE.BufferAttribute = function ( array, itemSize ) {
 	this.array = array;
 	this.array = array;
 	this.itemSize = itemSize;
 	this.itemSize = itemSize;
 
 
-	this._needsUpdate = false;
 	this.updateCounter = 0;
 	this.updateCounter = 0;
 
 
 };
 };
@@ -31,18 +30,10 @@ THREE.BufferAttribute.prototype = {
 
 
 	},
 	},
 
 
-	get needsUpdate() {
-
-		return this._needsUpdate;
-
-	},
-
 	set needsUpdate( value ) {
 	set needsUpdate( value ) {
 
 
 		if ( value === true ) this.updateCounter ++;
 		if ( value === true ) this.updateCounter ++;
 
 
-		this._needsUpdate = value;
-
 	},
 	},
 
 
 	copyAt: function ( index1, attribute, index2 ) {
 	copyAt: function ( index1, attribute, index2 ) {

+ 0 - 9
src/core/InterleavedBuffer.js

@@ -9,7 +9,6 @@ THREE.InterleavedBuffer = function ( array, stride, dynamic ) {
 	this.array = array;
 	this.array = array;
 	this.stride = stride;
 	this.stride = stride;
 
 
-	this._needsUpdate = false;
 	this.updateCounter = 0;
 	this.updateCounter = 0;
 
 
 	this.dynamic = dynamic || false;
 	this.dynamic = dynamic || false;
@@ -33,18 +32,10 @@ THREE.InterleavedBuffer.prototype = {
 
 
 	},
 	},
 
 
-	get needsUpdate() {
-
-		return this._needsUpdate;
-
-	},
-
 	set needsUpdate( value ) {
 	set needsUpdate( value ) {
 
 
 		if ( value === true ) this.updateCounter ++;
 		if ( value === true ) this.updateCounter ++;
 
 
-		this._needsUpdate = value;
-
 	},
 	},
 
 
 	copyAt: function ( index1, attribute, index2 ) {
 	copyAt: function ( index1, attribute, index2 ) {