From 4fd3b9f865a39a8672e185b16fcc6754f8e41b23 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Mon, 22 Aug 2022 17:35:21 -0400 Subject: [PATCH] BufferAttribute: Skip normalization in set() (#24526) --- src/core/BufferAttribute.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/BufferAttribute.js b/src/core/BufferAttribute.js index 3800e5edc01971..8d77fcde0912b7 100644 --- a/src/core/BufferAttribute.js +++ b/src/core/BufferAttribute.js @@ -309,12 +309,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;