Explorar o código

Updated builds.

Mugen87 %!s(int64=2) %!d(string=hai) anos
pai
achega
d135492cb9
Modificáronse 4 ficheiros con 13 adicións e 6 borrados
  1. 4 2
      build/three.cjs
  2. 4 2
      build/three.js
  3. 0 0
      build/three.min.js
  4. 5 2
      build/three.module.js

+ 4 - 2
build/three.cjs

@@ -7274,8 +7274,10 @@ class BufferAttribute {
 	}
 
 	set(value, offset = 0) {
-		if (this.normalized) value = normalize(value, this.array);
-		this.array.set(value, offset);
+		const array = this.array;
+		const normalized = this.normalized;
+		if (normalized) value = value.map(v => normalize(v, array));
+		array.set(value, offset);
 		return this;
 	}
 

+ 4 - 2
build/three.js

@@ -7276,8 +7276,10 @@
 		}
 
 		set(value, offset = 0) {
-			if (this.normalized) value = normalize(value, this.array);
-			this.array.set(value, offset);
+			const array = this.array;
+			const normalized = this.normalized;
+			if (normalized) value = value.map(v => normalize(v, array));
+			array.set(value, offset);
 			return this;
 		}
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/three.min.js


+ 5 - 2
build/three.module.js

@@ -9495,9 +9495,12 @@ class BufferAttribute {
 
 	set( value, offset = 0 ) {
 
-		if ( this.normalized ) value = normalize( value, this.array );
+		const array = this.array;
+		const normalized = this.normalized;
 
-		this.array.set( value, offset );
+		if ( normalized ) value = value.map( v => normalize( v, array ) );
+
+		array.set( value, offset );
 
 		return this;
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio