optional filepath

This commit is contained in:
tresabhi committed 2026-12-01 10:28:45 -06:00
1 parent e48f4e31c8
commit b9f5d13415
2 files changed
+7 -2

No files matched your search

@@ -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) => {