Skip to content

Commit

Permalink
Merge pull request #1412 from xeokit/fix-compressed-properties
Browse files Browse the repository at this point in the history
[FIX] Tolerate metamodel PropertySets with missing properties
  • Loading branch information
xeolabs authored Mar 13, 2024
2 parents 6389a60 + c81021d commit 5e51f4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/viewer/metadata/MetaModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ class MetaModel {
if (metaModelData.propertySets) {
for (let i = 0, len = metaModelData.propertySets.length; i < len; i++) {
const propertySetData = metaModelData.propertySets[i];
if (!propertySetData.properties) { // HACK: https://github.com/Creoox/creoox-ifc2gltfcxconverter/issues/8
propertySetData.properties = [];
}
let propertySet = metaScene.propertySets[propertySetData.id];
if (!propertySet) {
if (propertyLookup) {
Expand Down

0 comments on commit 5e51f4d

Please sign in to comment.