auto-git:

[change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-27 16:07:46 +02:00
parent 62a6e6413a
commit 9249b4188d

View File

@@ -1127,7 +1127,15 @@ export class ViewportHost {
versionInfo?.frameVersion ?? this.currentSimulationFrameVersion + 1;
this.applyWorld();
if (this.currentDocument === null || runtimeScene === null) {
if (runtimeScene === null) {
this.currentSimulationMembershipSignatures =
createViewportSimulationMembershipSignatures(null);
this.simulationActiveNpcEntityIds.clear();
this.simulationInteractableEnabledById.clear();
return;
}
if (this.currentDocument === null) {
return;
}
@@ -1159,6 +1167,7 @@ export class ViewportHost {
this.currentSimulationMembershipSignatures.interactables
) {
this.simulationInteractableEnabledById.clear();
this.cacheSimulationInteractableEnabledState(runtimeScene);
this.rebuildEntityMarkers(this.currentDocument, this.currentSelection);
} else {
this.syncSimulationInteractables(runtimeScene);