Adjust model instance rendering logic in ViewportHost

This commit is contained in:
2026-04-27 00:13:28 +02:00
parent d64ac05ffe
commit 35132bc9fb

View File

@@ -6073,7 +6073,7 @@ export class ViewportHost {
modelInstance modelInstance
]) ])
); );
const displayedModelInstances = return (
runtimeModelInstances?.map((runtimeModelInstance) => { runtimeModelInstances?.map((runtimeModelInstance) => {
const authoredModelInstance = authoredModelInstancesById.get( const authoredModelInstance = authoredModelInstancesById.get(
runtimeModelInstance.instanceId runtimeModelInstance.instanceId
@@ -6095,7 +6095,8 @@ export class ViewportHost {
animationClipName: runtimeModelInstance.animationClipName, animationClipName: runtimeModelInstance.animationClipName,
animationAutoplay: runtimeModelInstance.animationAutoplay animationAutoplay: runtimeModelInstance.animationAutoplay
}); });
}) ?? getModelInstances(document.modelInstances); }) ?? getModelInstances(document.modelInstances)
);
} }
private getDisplayedModelInstanceById( private getDisplayedModelInstanceById(