Skip to content

Commit

Permalink
feat: avatar blinking added
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-rpm committed Sep 17, 2024
1 parent ce9e9d9 commit 59b6f92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { GLTFLoader } from 'three-stdlib';

import { Model } from 'src/components/Models/Model';
import { BaseModelProps } from 'src/types';
import { useEmotion, useGltfCachedLoader } from 'src/services';
import { useEmotion, useGltfCachedLoader, useIdleExpression } from 'src/services';
import { Emotion } from 'src/components/Avatar/Avatar.component';

export interface MultipleAnimationModelProps extends BaseModelProps {
Expand Down Expand Up @@ -81,6 +81,7 @@ export const MultipleAnimationModel: FC<MultipleAnimationModelProps> = ({
});

useEmotion(nodes, emotion);
useIdleExpression('blink', nodes);

return <Model modelRef={groupRef} scene={scene} scale={scale} onLoaded={onLoaded} bloom={bloom} />;
};

0 comments on commit 59b6f92

Please sign in to comment.