diff --git a/src/app/App.tsx b/src/app/App.tsx index 0d8a321b..40bffda6 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1858,14 +1858,7 @@ export function App({ store, initialStatusMessage }: AppProps) { const targetSoundEmitter = (link.action.type === "playSound" || link.action.type === "stopSound" ? editorState.document.entities[link.action.targetSoundEmitterId] - : undefined) ?? soundEmitterOptions.find(({ entity }) => { - if (entity.audioAssetId === null) { - return false; - } - - const asset = editorState.document.assets[entity.audioAssetId]; - return asset?.kind === "audio"; - })?.entity; + : undefined) ?? playableSoundEmitterOptions[0]?.entity; if (targetSoundEmitter === undefined || targetSoundEmitter.kind !== "soundEmitter") { setStatusMessage("Author a Sound Emitter with an audio asset before switching this link to sound playback."); @@ -2374,6 +2367,24 @@ export function App({ store, initialStatusMessage }: AppProps) { > Add Stop Anim Link + + );