From c70ca979a0642e9a44847697eb6e3ec99489bb14 Mon Sep 17 00:00:00 2001 From: andrepat0 Date: Thu, 17 Oct 2024 10:41:20 +0200 Subject: [PATCH] fix: half body avatar --- .../AvatarView/AvatarComponent/components/halfbodyAvatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx b/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx index 4b7022b..0a013e3 100644 --- a/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx +++ b/src/components/Avatar/AvatarView/AvatarComponent/components/halfbodyAvatar.tsx @@ -80,6 +80,7 @@ export default function HalfBodyAvatar({ }; }, [materials, nodes, url, onLoaded, scene]); useFrame(state => { + if ( headMeshRef.current && headMeshRef.current.morphTargetDictionary && @@ -161,7 +162,6 @@ export default function HalfBodyAvatar({ return ( - {nodes.Hips && } );