auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-04-22 17:08:54 +02:00
parent eb0815bd8d
commit 27dd1f4a33

View File

@@ -2293,6 +2293,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
};
const selectedPlayerStart =
selectedEntity?.kind === "playerStart" ? selectedEntity : null;
const selectedCameraRig =
selectedEntity?.kind === "cameraRig" ? selectedEntity : null;
const selectedSoundEmitter = isSoundEmitterEntity(selectedEntity)
? selectedEntity
: null;
@@ -2470,6 +2472,17 @@ export function App({ store, initialStatusMessage }: AppProps) {
entity: Extract<EntityInstance, { kind: "soundEmitter" }>;
label: string;
}>;
const cameraRigActorOptions = Array.from(
new Set(
entityList
.filter((entity): entity is Extract<EntityInstance, { kind: "npc" }> => entity.kind === "npc")
.map((entity) => entity.actorId)
)
).sort((left, right) => left.localeCompare(right));
const cameraRigEntityTargetOptions = entityDisplayList.filter(
({ entity }) =>
entity.id !== selectedCameraRig?.id && entity.kind !== "cameraRig"
);
const playableSoundEmitterOptions = soundEmitterOptions.filter(
({ entity }) => {
if (entity.audioAssetId === null) {