Skip to content

Commit

Permalink
fix(idle-expression): ACT-889 update animation when new model is load…
Browse files Browse the repository at this point in the history
…ed (#90)
  • Loading branch information
yuri-wolf3d authored Aug 28, 2024
1 parent 09b79ed commit bd2fc81
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 @@ -357,7 +357,7 @@ export const useIdleExpression = (expression: keyof typeof expressions, nodes: N
selectedExpression[i].morphTargetIndex = headMesh.morphTargetDictionary[selectedExpression[i].morphTarget];
}
}
}, [selectedExpression?.length]);
}, [selectedExpression, headMesh?.morphTargetDictionary]);

const animateExpression = useCallback(
(delta: number) => {
Expand Down

0 comments on commit bd2fc81

Please sign in to comment.