Remove unused presence effect handling in ProjectSchedulePane.tsx

This commit is contained in:
2026-04-15 07:25:58 +02:00
parent d0eaabcc90
commit 2f0d5a01f9

View File

@@ -315,10 +315,6 @@ function getRoutineSummary(
const heldSteps = getProjectScheduleRoutineHeldSteps(routine, sequences); const heldSteps = getProjectScheduleRoutineHeldSteps(routine, sequences);
if (routine.target.kind === "actor") { if (routine.target.kind === "actor") {
const presenceEffect = findHeldSequenceControlEffect(
heldSteps,
"setActorPresence"
);
const animationEffect = findHeldSequenceControlEffect( const animationEffect = findHeldSequenceControlEffect(
heldSteps, heldSteps,
"playActorAnimation" "playActorAnimation"
@@ -328,8 +324,6 @@ function getRoutineSummary(
"followActorPath" "followActorPath"
); );
summaryParts.push(presenceEffect?.active === false ? "Hidden" : "Present");
if (animationEffect !== null) { if (animationEffect !== null) {
summaryParts.push(formatControlEffectValue(animationEffect)); summaryParts.push(formatControlEffectValue(animationEffect));
} }
@@ -358,9 +352,7 @@ function isRoutineEffectInactive(
const heldSteps = getProjectScheduleRoutineHeldSteps(routine, sequences); const heldSteps = getProjectScheduleRoutineHeldSteps(routine, sequences);
if (routine.target.kind === "actor") { if (routine.target.kind === "actor") {
return ( return false;
findHeldSequenceControlEffect(heldSteps, "setActorPresence")?.active === false
);
} }
const effect = const effect =
@@ -893,17 +885,16 @@ export function ProjectSequencerPane({
</div> </div>
{selectedAttachedSequence !== null ? ( {selectedAttachedSequence !== null ? (
<div className="material-summary"> <div className="material-summary">
This placement resolves held effects from{" "} This placement runs <strong>{selectedAttachedSequence.title}</strong>.
<strong>{selectedAttachedSequence.title}</strong>. Edit animation, path, lighting, audio, dialogue, or other
Edit animation, path, presence, lighting, or other held
engine effects in the Sequence Editor. engine effects in the Sequence Editor.
</div> </div>
) : null} ) : null}
{selectedRoutine.sequenceId === null ? ( {selectedRoutine.sequenceId === null ? (
<div className="material-summary"> <div className="material-summary">
{selectedRoutine.target.kind === "global" {selectedRoutine.target.kind === "global"
? "Project event placements run attached sequences only. Create a sequence with impulse effects like scene transitions, dialogue starts, or teleports." ? "Project event placements run attached sequences only. Create a sequence with start effects like scene transitions, dialogue starts, or teleports."
: "This placement has no attached sequence yet. Create one, then author presence, animation, path, lighting, sound, or other engine effects inside the Sequence Editor."} : "This placement has no attached sequence yet. Create one, then author animation, path, lighting, sound, dialogue, or other engine effects inside the Sequence Editor."}
</div> </div>
) : null} ) : null}
<label className="form-field form-field--inline"> <label className="form-field form-field--inline">