Do not show empty property group.
This commit is contained in:
parent
9b0d08e307
commit
48fc88cb70
@ -22,3 +22,8 @@ export function CopyObjectAttributes (src, dest)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function IsObjectEmpty (obj)
|
||||
{
|
||||
return Object.keys (obj).length === 0;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user