Skip to content

Commit

Permalink
BufferAttribute: Skip normalization in set() (mrdoob#24526)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored and snagy committed Sep 13, 2022
1 parent 928b0ea commit 4fd3b9f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/BufferAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4fd3b9f

Please sign in to comment.