Add playableSoundEmitterOptions filter to App.tsx

This commit is contained in:
2026-04-02 19:42:09 +02:00
parent 6942ee8bb0
commit 60dd0d58a5

View File

@@ -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)