From 35132bc9fb0093ce9814b2d2fa5a2183a0af9d41 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 00:13:28 +0200 Subject: [PATCH] Adjust model instance rendering logic in ViewportHost --- src/viewport-three/viewport-host.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index d270d0d5..0497858e 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -6073,7 +6073,7 @@ export class ViewportHost { modelInstance ]) ); - const displayedModelInstances = + return ( runtimeModelInstances?.map((runtimeModelInstance) => { const authoredModelInstance = authoredModelInstancesById.get( runtimeModelInstance.instanceId @@ -6095,7 +6095,8 @@ export class ViewportHost { animationClipName: runtimeModelInstance.animationClipName, animationAutoplay: runtimeModelInstance.animationAutoplay }); - }) ?? getModelInstances(document.modelInstances); + }) ?? getModelInstances(document.modelInstances) + ); } private getDisplayedModelInstanceById(