Skip to content

Commit

Permalink
#1119 - fix pset system ID
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Aug 31, 2023
1 parent ec7e514 commit 54146fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/viewer/metadata/MetaScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class MetaScene {
if (!propertySet) {
propertySet = new PropertySet({
id: propertySetData.id,
originalSystemId: propertySetData.originalSystemId,
originalSystemId: propertySetData.originalSystemId || propertySetData.id,
type: propertySetData.type,
name: propertySetData.name,
properties: propertySetData.properties
Expand All @@ -182,11 +182,13 @@ class MetaScene {
const metaObjectData = metaModelData.metaObjects[i];
const type = metaObjectData.type;
const id = metaObjectData.id;
const originalSystemId = metaObjectData.originalSystemId;
const propertySetIds = metaObjectData.propertySets || metaObjectData.propertySetIds;
let metaObject = this.metaObjects[id];
if (!metaObject) {
metaObject = new MetaObject({
id,
originalSystemId,
parentId: metaObjectData.parent,
type,
name: metaObjectData.name,
Expand Down Expand Up @@ -479,4 +481,4 @@ function arrayToMap(array) {
return map;
}

export {MetaScene};
export {MetaScene};

0 comments on commit 54146fb

Please sign in to comment.