From c153cb2edeb25504d9131f9d50cb4ff3441a7b34 Mon Sep 17 00:00:00 2001 From: ijlal99 Date: Tue, 17 Dec 2024 14:35:31 +0500 Subject: [PATCH] XCD-223: Adapt the change of metaModels from array to object --- src/viewer/metadata/MetaScene.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewer/metadata/MetaScene.js b/src/viewer/metadata/MetaScene.js index b0276d18b..f03f682c1 100644 --- a/src/viewer/metadata/MetaScene.js +++ b/src/viewer/metadata/MetaScene.js @@ -253,8 +253,8 @@ class MetaScene { for (let modelId in this.metaModels) { const metaModel = this.metaModels[modelId]; - for (let i = 0, len = metaModel.metaObjects.length; i < len; i++) { - const metaObject = metaModel.metaObjects[i]; + for (let objectId in metaModel.metaObjects) { + const metaObject = metaModel.metaObjects[objectId]; metaObject.metaModels.push(metaModel); } }