From 47a98d753ce3284e266ed169114900546acdba3a Mon Sep 17 00:00:00 2001 From: Elar Huik Date: Tue, 20 Jun 2023 15:32:09 +0300 Subject: [PATCH] fix: remove debugging --- src/components/Models/Model/Model.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Models/Model/Model.component.tsx b/src/components/Models/Model/Model.component.tsx index d2d2d4a0..b8f45399 100644 --- a/src/components/Models/Model/Model.component.tsx +++ b/src/components/Models/Model/Model.component.tsx @@ -24,7 +24,7 @@ export const Model: FC = ({ scene, scale = 1, modelRef, onLoaded }) node.receiveShadow = true; } }); - console.log({ onLoaded }); + useEffect(() => triggerCallback(onLoaded), [scene, materials, onLoaded]); return (