Fix scope for modelInstances handling in ViewportHost

This commit is contained in:
2026-05-11 14:13:11 +02:00
parent a97f57ed61
commit b6cadc27f9

View File

@@ -4897,7 +4897,7 @@ export class ViewportHost {
boundingBox: this.getModelAssetBoundingBox(session.target.assetId)
})
: [];
case "modelInstances":
case "modelInstances": {
if (preview.kind !== "modelInstances") {
return [];
}
@@ -4914,6 +4914,7 @@ export class ViewportHost {
)
})
);
}
case "entity": {
if (
preview.kind !== "entity" ||