소스 검색

Updated builds.

Mugen87 3 년 전
부모
커밋
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;
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.