Skip to content

Commit

Permalink
Merge pull request #1763 from xeokit/fix/treeviewplugin-rootname
Browse files Browse the repository at this point in the history
XCD-223: Adapt the change of metaModels from array to object
  • Loading branch information
xeolabs authored Dec 17, 2024
2 parents e4e4bcf + c153cb2 commit 95b93d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewer/metadata/MetaScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 95b93d0

Please sign in to comment.