Skip to content

Commit

Permalink
fix(expression): ACT-873 add head name support for expression (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjansenrpm authored Aug 27, 2024
1 parent 5c0ebc8 commit 09b79ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Models.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<NodeJS.Timeout>();
const duration = useRef<number>(Number.POSITIVE_INFINITY);
Expand Down

0 comments on commit 09b79ed

Please sign in to comment.