Throw error for unsupported actor effects in project schedule

This commit is contained in:
2026-04-14 13:51:01 +02:00
parent 7c78b37b48
commit 248a1ada7b

View File

@@ -536,6 +536,11 @@ export function getProjectScheduleEffectOptionId(
switch (effect.type) {
case "setActorPresence":
return effect.active ? "actor.present" : "actor.hidden";
case "playActorAnimation":
case "followActorPath":
throw new Error(
"Actor animation and follow-path effects use the dedicated actor routine editor."
);
case "playModelAnimation":
return "model.playAnimation";
case "stopModelAnimation":