From bf0aa247a05334b7decaadc9ce191d7bb224145a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 14 Nov 2025 19:12:39 +0100 Subject: [PATCH] IfcConvert: only conditionally bypass properties --- src/ifcconvert/IfcConvert.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index c41c1eab80..4f19d31e17 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -1359,12 +1359,14 @@ bool init_input_file(const std::string& filename, IfcParse::IfcFile*& ifc_file, requires_init = true; } - ifc_file->bypass_type("IfcRelDefinesByProperties"); - ifc_file->bypass_type("IfcPropertySetDefinition"); - ifc_file->bypass_type("IfcProperty"); - ifc_file->bypass_type("IfcMaterialProperties"); - ifc_file->bypass_type("IfcProfileProperties"); - ifc_file->bypass_type("IfcPhysicalQuantity"); + if (bypass_properties) { + ifc_file->bypass_type("IfcRelDefinesByProperties"); + ifc_file->bypass_type("IfcPropertySetDefinition"); + ifc_file->bypass_type("IfcProperty"); + ifc_file->bypass_type("IfcMaterialProperties"); + ifc_file->bypass_type("IfcProfileProperties"); + ifc_file->bypass_type("IfcPhysicalQuantity"); + } #ifdef USE_MMAP if (mmap) {