Browse Source

Fix InterleavedBuffer accessors

Tristan VALCKE 8 years ago
parent
commit
192e8671d1
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/core/InterleavedBuffer.js

+ 6 - 6
src/core/InterleavedBuffer.js

@@ -21,17 +21,17 @@ function InterleavedBuffer( array, stride ) {
 
 }
 
-Object.assign( InterleavedBuffer.prototype, {
+Object.defineProperty( InterleavedBuffer.prototype, "needsUpdate", {
 
-	constructor: InterleavedBuffer,
+	set: function(value) { if ( value === true ) this.version ++; }
 
-	isInterleavedBuffer: true,
+});
 
-	set needsUpdate( value ) {
+Object.assign( InterleavedBuffer.prototype, {
 
-		if ( value === true ) this.version ++;
+	constructor: InterleavedBuffer,
 
-	},
+	isInterleavedBuffer: true,
 
 	setArray: function ( array ) {