Procházet zdrojové kódy

fix: avoid assigning args as BufferAttribute to BufferGeometry

alvarosabu před 2 roky
rodič
revize
1cc67b08c1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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>)),