From 07a4c711a8cdc2f94bd392d71612ce8d8e8df9cb Mon Sep 17 00:00:00 2001 From: ijlal99 Date: Fri, 18 Oct 2024 16:28:05 +0500 Subject: [PATCH] Fix rootnames showing as na in TreeViewPlugin --- src/viewer/metadata/MetaModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewer/metadata/MetaModel.js b/src/viewer/metadata/MetaModel.js index d5d54bf8cf..5fef5b79d6 100644 --- a/src/viewer/metadata/MetaModel.js +++ b/src/viewer/metadata/MetaModel.js @@ -304,8 +304,8 @@ class MetaModel { for (let modelId in metaScene.metaModels) { const metaModel = metaScene.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); } }