From 7ac0fa653b6ea03de64f6b2aa91e6ff321a5c993 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 15 Apr 2026 01:41:55 +0200 Subject: [PATCH] Add target options for sequence visibility, animation, and sound --- src/app/App.tsx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 2310acd1..0b84dfb7 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1970,6 +1970,36 @@ export function App({ store, initialStatusMessage }: AppProps) { const projectImpulseSequenceList = projectSequenceList.filter( (sequence) => getProjectSequenceImpulseSteps(sequence).length > 0 ); + const sequenceVisibilityTargetOptions = [ + ...visibilityBrushOptions.map(({ brush, label }) => ({ + targetKey: `brush:${brush.id}`, + label: `Whitebox Solid · ${label}` + })), + ...modelInstanceDisplayList.map(({ modelInstance, label }) => ({ + targetKey: `modelInstance:${modelInstance.id}`, + label: `Model Instance · ${label}` + })) + ]; + const sequenceAnimationTargetOptions = projectScheduleTargetOptions + .filter( + (option) => + option.target.kind === "modelInstance" && + (option.defaults.animationClipNames?.length ?? 0) > 0 + ) + .map((option) => ({ + targetKey: option.key, + label: `${option.groupLabel} · ${option.label}` + })); + const sequenceSoundTargetOptions = projectScheduleTargetOptions + .filter( + (option) => + option.target.kind === "entity" && + option.target.entityKind === "soundEmitter" + ) + .map((option) => ({ + targetKey: option.key, + label: `${option.groupLabel} · ${option.label}` + })); const selectedInteractionSource = isInteractionSourceEntity(selectedEntity) ? selectedEntity : null;