Add scene transition target options in App.tsx

This commit is contained in:
2026-04-15 03:43:55 +02:00
parent d24946fed7
commit 7ea183d677

View File

@@ -2020,6 +2020,12 @@ export function App({ store, initialStatusMessage }: AppProps) {
const teleportTargetOptions = entityDisplayList.filter(
({ entity }) => entity.kind === "teleportTarget"
);
const sceneTransitionTargetOptions = sceneTargetOptions.flatMap((scene) =>
(sceneEntryOptionsBySceneId[scene.id] ?? []).map(({ entity, label }) => ({
targetKey: `${scene.id}::${entity.id}`,
label: `${scene.name} · ${label}`
}))
);
const soundEmitterOptions = entityDisplayList.filter(
({ entity }) => entity.kind === "soundEmitter"
) as Array<{