Improve animation handling

This commit is contained in:
kolaflash
2026-01-17 14:52:42 +01:00
parent 9441e09d07
commit 74a77fa281
8 changed files with 84 additions and 40 deletions
+10 -6
View File
@@ -66,12 +66,16 @@ export const [loadScene, sceneCache] = useWithAsyncCache(
});
}
const instance: Entity<unknown> = structuredClone({
...entityMap.get(entity.name)!,
...entity,
});
entityInstanceMap.get(entity.name)!.instances.push(instance);
try {
entityInstanceMap.get(entity.name)!.instances.push(
structuredClone({
...entityMap.get(entity.name)!,
...entity,
}),
);
} catch (error) {
console.error(entity.name, error);
}
}),
);
},