Explorar o código

Merge pull request #17678 from Mugen87/dev34

three.legacy.js: Fix fallback for .dynamic.
Michael Herzog %!s(int64=5) %!d(string=hai) anos
pai
achega
70a612cd6f
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 );
 
 		}
 	}