Selaa lähdekoodia

BufferAttribute: Skip normalization in set() (#24526)

Don McCurdy 2 vuotta sitten
vanhempi
commit
b53b760660
1 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2 6
      src/core/BufferAttribute.js

+ 2 - 6
src/core/BufferAttribute.js

@@ -311,12 +311,8 @@ class BufferAttribute {
 
 	set( value, offset = 0 ) {
 
-		const array = this.array;
-		const normalized = this.normalized;
-
-		if ( normalized ) value = value.map( v => normalize( v, array ) );
-
-		array.set( value, offset );
+		// Matching BufferAttribute constructor, do not normalize the array.
+		this.array.set( value, offset );
 
 		return this;