GLTFLoader Cannot read properties of undefined (reading 'traverse')

Hi boys!

in this case , group throw type error of traverse.

error

code: three-codesandBox

thank you.

Most of them are normal, and a small number of them will have this problem。

  gltf.scene.traverse((i) => {
    scene.add(i);
  });

Does the error go away if you just do this:

scene.add( gltf.scene );

I need to modify their material :sob: