diff --git a/src/services/Models.service.tsx b/src/services/Models.service.tsx index 6e87b730..ea7f97b3 100644 --- a/src/services/Models.service.tsx +++ b/src/services/Models.service.tsx @@ -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) => {