From b9f5d13415fedaa291cb776176d1d4b6c2e12822 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:28:45 -0600 Subject: [PATCH] optional filepath --- packages/core/src/streams/sc2.ts | 2 +- .../src/pages/[...chunk_models_tanks]/[id]/model.glb.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/core/src/streams/sc2.ts b/packages/core/src/streams/sc2.ts index 712fe37b2..ed9673336 100644 --- a/packages/core/src/streams/sc2.ts +++ b/packages/core/src/streams/sc2.ts @@ -266,7 +266,7 @@ export type Component = } | { "comp.typename": "MotionComponent"; - "motion.filepath": string; + "motion.filepath"?: string; "motion.playbackRate": number; "simpleMotion.repeatsCount": number; } diff --git a/packages/website/src/pages/[...chunk_models_tanks]/[id]/model.glb.ts b/packages/website/src/pages/[...chunk_models_tanks]/[id]/model.glb.ts index 341aa2261..e76e7cc8b 100644 --- a/packages/website/src/pages/[...chunk_models_tanks]/[id]/model.glb.ts +++ b/packages/website/src/pages/[...chunk_models_tanks]/[id]/model.glb.ts @@ -125,7 +125,12 @@ export async function extractModel( parseHierarchies(sc2["#hierarchy"], null, (hierarchy, components) => { for (const component of components) { - if (component["comp.typename"] !== "MotionComponent") continue; + if ( + component["comp.typename"] !== "MotionComponent" || + component["motion.filepath"] === undefined + ) { + continue; + } loading.push( loadMotion(vfs, path, component).then((motion) => {