three-stdlib icon indicating copy to clipboard operation
three-stdlib copied to clipboard

interface GLTF lack two attributes: nodes and materials

Open Gjb7598189 opened this issue 3 years ago • 3 comments

interface GLTF lack two attributes: nodes and materials 类型文件

Gjb7598189 avatar Jun 21 '22 08:06 Gjb7598189

who can help me?

Gjb7598189 avatar Jun 28 '22 06:06 Gjb7598189

nodes & materials aren't part of the gltf loader output, they're added by useLoader/useGLTF. i asked on threejs GH once but they were against adding these two, so they are exclusive to the react+three eco system. things like gltfjsx automatically type them out.

drcmda avatar Jun 28 '22 13:06 drcmda

thanks @drcmda for the help。 so, I can only solve this by extending the global ts type?

Gjb7598189 avatar Jul 05 '22 07:07 Gjb7598189

Should be fixed in Drei v9.25.3.

CodyJasonBennett avatar Sep 03 '22 14:09 CodyJasonBennett