From d15aa8694a4c0635717745d54491e9799b533604 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 25 Apr 2026 03:55:41 +0200 Subject: [PATCH] auto-git: [change] src/runtime-three/runtime-host.ts --- src/runtime-three/runtime-host.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 263d7697..08630197 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -1532,7 +1532,6 @@ export class RuntimeHost { } private syncNpcRenderGroupTransform(renderGroup: Group, npc: RuntimeNpc) { - renderGroup.visible = npc.visible; renderGroup.position.set(npc.position.x, npc.position.y, npc.position.z); const facingGroup = renderGroup.getObjectByName("npcFacingGroup"); @@ -4557,6 +4556,7 @@ export class RuntimeHost { const cameraDt = dt; const previousCameraPose = this.captureCurrentCameraPose(); + this.updateRuntimeDialogueParticipants(cameraDt); this.activeController?.update(simulationDt); const activeCameraRig = this.applyActiveCameraRig(cameraDt, previousCameraPose); @@ -5096,6 +5096,13 @@ export class RuntimeHost { this.activeDialogueAttentionState = null; } + if ( + dialogue !== null && + this.dialogueParticipantState?.npcEntityId !== dialogue.npcEntityId + ) { + this.dialogueParticipantState = null; + } + this.currentDialogue = dialogue; this.setDialoguePauseActive(dialogue !== null); this.runtimeDialogueHandler?.(dialogue); @@ -5154,6 +5161,7 @@ export class RuntimeHost { return; } + this.dialogueParticipantState = this.resolveDialogueParticipantState(npc); this.setRuntimeDialogue(dialogue); }