From 84054e1908ccbf57a2f322eb452fa03c390f8a6b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 16:31:00 +0200 Subject: [PATCH] Implement runtime refresh for NPC collections --- src/runtime-three/runtime-host.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 0ef2cb6f..19cae261 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -193,6 +193,7 @@ import { import { commitRuntimeScheduleSyncResult, createRuntimeScheduleSyncContext, + refreshRuntimeNpcCollections, syncRuntimeSceneScheduleToClock, type RuntimeScheduleSyncContext } from "./runtime-schedule-sync"; @@ -5251,6 +5252,14 @@ export class RuntimeHost { } } + private refreshRuntimeNpcCollections() { + if (this.runtimeScene === null) { + return; + } + + refreshRuntimeNpcCollections(this.runtimeScene); + } + private refreshCollisionWorldForNpcSchedule() { if (this.runtimeScene === null) { return;