瀏覽代碼

Updated builds.

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) {
 	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;
 		return this;
 	}
 	}
 
 

+ 4 - 2
build/three.js

@@ -7276,8 +7276,10 @@
 		}
 		}
 
 
 		set(value, offset = 0) {
 		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;
 			return this;
 		}
 		}
 
 

文件差異過大導致無法顯示
+ 0 - 0
build/three.min.js


+ 5 - 2
build/three.module.js

@@ -9495,9 +9495,12 @@ class BufferAttribute {
 
 
 	set( value, offset = 0 ) {
 	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;
 		return this;
 
 

部分文件因文件數量過多而無法顯示