From f2687174663336411640e41de60894c73f1f87a9 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 26 Feb 2024 01:16:05 -0800 Subject: [PATCH] fix: move model to location accessible by production build --- .../assets => public/static}/models/license.txt | 0 .../{src/assets => public/static}/models/scene.bin | Bin .../{src/assets => public/static}/models/scene.gltf | 0 .../Dashboard/Visualization/models/Hornet.svelte | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename client/{src/assets => public/static}/models/license.txt (100%) rename client/{src/assets => public/static}/models/scene.bin (100%) rename client/{src/assets => public/static}/models/scene.gltf (100%) diff --git a/client/src/assets/models/license.txt b/client/public/static/models/license.txt similarity index 100% rename from client/src/assets/models/license.txt rename to client/public/static/models/license.txt diff --git a/client/src/assets/models/scene.bin b/client/public/static/models/scene.bin similarity index 100% rename from client/src/assets/models/scene.bin rename to client/public/static/models/scene.bin diff --git a/client/src/assets/models/scene.gltf b/client/public/static/models/scene.gltf similarity index 100% rename from client/src/assets/models/scene.gltf rename to client/public/static/models/scene.gltf diff --git a/client/src/lib/Dashboard/Visualization/models/Hornet.svelte b/client/src/lib/Dashboard/Visualization/models/Hornet.svelte index 9e04738..847fbdd 100644 --- a/client/src/lib/Dashboard/Visualization/models/Hornet.svelte +++ b/client/src/lib/Dashboard/Visualization/models/Hornet.svelte @@ -46,7 +46,7 @@ Title: Low Poly F/A-18 Hornet } } - const gltf = useGltf('/src/assets/models/scene.gltf') + const gltf = useGltf('/static/models/scene.gltf') const component = forwardEventHandlers()