mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-01 22:02:45 +01:00
optional filepath
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -266,7 +266,7 @@ export type Component =
|
|||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
"comp.typename": "MotionComponent";
|
"comp.typename": "MotionComponent";
|
||||||
"motion.filepath": string;
|
"motion.filepath"?: string;
|
||||||
"motion.playbackRate": number;
|
"motion.playbackRate": number;
|
||||||
"simpleMotion.repeatsCount": number;
|
"simpleMotion.repeatsCount": number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,7 +125,12 @@ export async function extractModel(
|
|||||||
|
|
||||||
parseHierarchies(sc2["#hierarchy"], null, (hierarchy, components) => {
|
parseHierarchies(sc2["#hierarchy"], null, (hierarchy, components) => {
|
||||||
for (const component of components) {
|
for (const component of components) {
|
||||||
if (component["comp.typename"] !== "MotionComponent") continue;
|
if (
|
||||||
|
component["comp.typename"] !== "MotionComponent" ||
|
||||||
|
component["motion.filepath"] === undefined
|
||||||
|
) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
loading.push(
|
loading.push(
|
||||||
loadMotion(vfs, path, component).then((motion) => {
|
loadMotion(vfs, path, component).then((motion) => {
|
||||||
|
|||||||
Reference in new issue
Block a user