Skip to content

default generated tsx code problems #273

@patacoding

Description

@patacoding

const group = React.useRef<THREE.Group>()
const { scene, animations } = useGLTF('/autonomous_robot_sweeper-transformed.glb')
const clone = React.useMemo(() => SkeletonUtils.clone(scene), [scene])
const { nodes, materials } = useGraph(clone) as GLTFResult

// actions is empty
const { actions } = useAnimations(animations, group)

// this way get correct result
const actions = useAnimations(animations, group)

maybe useAnimations version problem? tested with "@react-three/drei": "^9.106.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions