From 99797e6b09514ce5ff37120f33d9df383d56da4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Radaczy=C5=84ski?= <47977819+paireks@users.noreply.github.com> Date: Mon, 2 May 2022 17:54:53 +0200 Subject: [PATCH] Creates empty info if there is no properties Subjective opinion that it makes it easier when all properties are filled 100% of a time, even if it means empty list. To check if after this change it actually creates "info": {} :) --- source/engine/export/exporterbim.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/engine/export/exporterbim.js b/source/engine/export/exporterbim.js index 1a35bcd..80e6ffa 100644 --- a/source/engine/export/exporterbim.js +++ b/source/engine/export/exporterbim.js @@ -93,8 +93,7 @@ export class ExporterBim extends ExporterBase info[property.name] = PropertyToString (property); } } - if (Object.keys (info).length !== 0) { - targetObject.info = info; - } + + targetObject.info = info; } }