Browse Source

fix: avoid assigning args as BufferAttribute to BufferGeometry

alvarosabu 2 năm trước cách đây
mục cha
commit
1cc67b08c1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/core/nodeOps.ts

+ 1 - 0
src/core/nodeOps.ts

@@ -132,6 +132,7 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
       let target = root?.[finalKey]
 
       if (root.type === 'BufferGeometry') {
+        if (key === 'args') return
         root.setAttribute(
           kebabToCamel(key),
           new BufferAttribute(...(nextValue as ConstructorParameters<typeof BufferAttribute>)),