Do not show empty property group.

This commit is contained in:
kovacsv 2022-05-28 00:38:08 +02:00
parent 9b0d08e307
commit 48fc88cb70
2 changed files with 7 additions and 1 deletions

View File

@ -22,3 +22,8 @@ export function CopyObjectAttributes (src, dest)
}
}
}
export function IsObjectEmpty (obj)
{
return Object.keys (obj).length === 0;
}

View File

@ -1,3 +1,4 @@
import { IsObjectEmpty } from '../core/core.js';
import { Coord3D } from '../geometry/coord3d.js';
import { Direction } from '../geometry/geometry.js';
import { ArrayBufferToUtf8String } from '../io/bufferutils.js';
@ -165,7 +166,7 @@ export class ImporterBim extends ImporterBase
group.AddProperty (property);
}
if (!source.info) {
if (!source.info || IsObjectEmpty (source.info)) {
return;
}