From 60dd0d58a5e761d476588126ec3a50401b7f9fff Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 19:42:09 +0200 Subject: [PATCH] Add playableSoundEmitterOptions filter to App.tsx --- src/app/App.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index c165dd01..a049c431 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -686,6 +686,13 @@ export function App({ store, initialStatusMessage }: AppProps) { selectedInteractable === null ? [] : getInteractionLinksForSource(editorState.document.interactionLinks, selectedInteractable.id); const teleportTargetOptions = entityDisplayList.filter(({ entity }) => entity.kind === "teleportTarget"); const soundEmitterOptions = entityDisplayList.filter(({ entity }) => entity.kind === "soundEmitter"); + const playableSoundEmitterOptions = soundEmitterOptions.filter(({ entity }) => { + if (entity.audioAssetId === null) { + return false; + } + + return editorState.document.assets[entity.audioAssetId]?.kind === "audio"; + }); const visibilityBrushOptions = brushList.map((brush, brushIndex) => ({ brush, label: getBrushLabel(brush, brushIndex)