浏览代码

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.itemSize = itemSize;
 
-	this._needsUpdate = false;
 	this.updateCounter = 0;
 
 };
@@ -31,18 +30,10 @@ THREE.BufferAttribute.prototype = {
 
 	},
 
-	get needsUpdate() {
-
-		return this._needsUpdate;
-
-	},
-
 	set needsUpdate( value ) {
 
 		if ( value === true ) this.updateCounter ++;
 
-		this._needsUpdate = value;
-
 	},
 
 	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.stride = stride;
 
-	this._needsUpdate = false;
 	this.updateCounter = 0;
 
 	this.dynamic = dynamic || false;
@@ -33,18 +32,10 @@ THREE.InterleavedBuffer.prototype = {
 
 	},
 
-	get needsUpdate() {
-
-		return this._needsUpdate;
-
-	},
-
 	set needsUpdate( value ) {
 
 		if ( value === true ) this.updateCounter ++;
 
-		this._needsUpdate = value;
-
 	},
 
 	copyAt: function ( index1, attribute, index2 ) {