From 6859e43c7d53d8d83c24c6df47dfa75f92e024d8 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 13:52:03 +0200 Subject: [PATCH] Change null to undefined in loadedModelAssets check --- src/runtime-three/runtime-host.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index eac2e196..b8066f06 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -1900,8 +1900,8 @@ export class RuntimeHost { : (this.projectAssets[npc.modelAssetId] ?? null); const loadedAsset = npc.modelAssetId === null - ? null - : (this.loadedModelAssets[npc.modelAssetId] ?? null); + ? undefined + : this.loadedModelAssets[npc.modelAssetId]; const renderGroup = npc.modelAssetId === null || asset?.kind !== "model" ? this.createNpcColliderFallbackRenderGroup(npc)