From 09b79edb98088a90a7c8745e470a2a5b07dae561 Mon Sep 17 00:00:00 2001 From: Eric Jansen <152877805+ericjansenrpm@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:00:58 +0200 Subject: [PATCH] fix(expression): ACT-873 add head name support for expression (#89) --- src/services/Models.service.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/Models.service.tsx b/src/services/Models.service.tsx index 1fd12344..6e87b730 100644 --- a/src/services/Models.service.tsx +++ b/src/services/Models.service.tsx @@ -346,7 +346,7 @@ export const expressions = { * Animates avatars facial expressions when morphTargets=ARKit,Eyes Extra is provided with the avatar. */ export const useIdleExpression = (expression: keyof typeof expressions, nodes: Nodes) => { - const headMesh = (nodes.Wolf3D_Head || nodes.Wolf3D_Avatar) as unknown as SkinnedMeshProps; + const headMesh = (nodes.Wolf3D_Head || nodes.Wolf3D_Avatar || nodes.head) as unknown as SkinnedMeshProps; const selectedExpression = expression in expressions ? expressions[expression] : undefined; const timeout = useRef(); const duration = useRef(Number.POSITIVE_INFINITY);