From 31cd191d2d2e3a6f4dac68dc873038fa2aa8c005 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Sat, 22 Aug 2026 15:52:17 +0200 Subject: [PATCH] TSL: Honor type in `toAttribute()`. (#34347) --- src/nodes/accessors/BufferAttributeNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/accessors/BufferAttributeNode.js b/src/nodes/accessors/BufferAttributeNode.js index b737aa886e36c5..b80504a92a15ed 100644 --- a/src/nodes/accessors/BufferAttributeNode.js +++ b/src/nodes/accessors/BufferAttributeNode.js @@ -440,4 +440,4 @@ export const instancedBufferAttribute = ( array, type = null, stride = 0, offset */ export const instancedDynamicBufferAttribute = ( array, type = null, stride = 0, offset = 0 ) => createBufferAttribute( array, type, stride, offset, DynamicDrawUsage, true ); -addMethodChaining( 'toAttribute', ( bufferNode ) => bufferAttribute( bufferNode.value ) ); +addMethodChaining( 'toAttribute', ( bufferNode ) => bufferAttribute( bufferNode.value, bufferNode.bufferType ) );