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); } }