Mugen87 преди 2 години
родител
ревизия
d135492cb9
променени са 4 файла, в които са добавени 13 реда и са изтрити 6 реда
  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;
 		}
 

Файловите разлики са ограничени, защото са твърде много
+ 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;
 

Някои файлове не бяха показани, защото твърде много файлове са промени