Explorar o código

three.legacy.js: Fix fallback for .dynamic.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
5e8bcf53a4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Three.Legacy.js

+ 2 - 2
src/Three.Legacy.js

@@ -1176,10 +1176,10 @@ Object.defineProperties( BufferAttribute.prototype, {
 			return this.usage === DynamicDrawUsage;
 
 		},
-		set: function ( value ) {
+		set: function ( /* value */ ) {
 
 			console.warn( 'THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.' );
-			this.setUsage( value );
+			this.setUsage( DynamicDrawUsage );
 
 		}
 	}