Update validation messages and logic in scene document, project scheduler, and sequencer

This commit is contained in:
2026-04-15 07:24:02 +02:00
parent 0791a1357a
commit da510ad776
3 changed files with 15 additions and 39 deletions

View File

@@ -6,8 +6,6 @@ import {
getControlEffectResolutionKey,
type ControlEffect,
type ControlTargetRef,
createActorControlTargetRef,
createSetActorPresenceControlEffect,
getControlTargetRefKey
} from "../controls/control-surface";
import {
@@ -204,19 +202,7 @@ function normalizeProjectScheduleEffects(
}
}
if (
target.kind === "actor" &&
!normalizedEffects.some((effect) => effect.type === "setActorPresence")
) {
normalizedEffects.push(
createSetActorPresenceControlEffect({
target,
active: true
})
);
}
if (normalizedEffects.length === 0) {
if (normalizedEffects.length === 0 && target.kind !== "actor") {
throw new Error("Project schedule routines must contain at least one control effect.");
}