From b64dcfd4b830f0f04168c52bfc1bc2db2088b441 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 19 Apr 2025 09:21:22 +0200 Subject: [PATCH] Fix compilation on schemas prior to ifc4 #6549 --- src/serializers/schema_dependent/XmlSerializer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serializers/schema_dependent/XmlSerializer.cpp b/src/serializers/schema_dependent/XmlSerializer.cpp index 5f3c3ccf70..e98b0fbe4e 100644 --- a/src/serializers/schema_dependent/XmlSerializer.cpp +++ b/src/serializers/schema_dependent/XmlSerializer.cpp @@ -305,6 +305,7 @@ ptree* descend(ifcopenshell::geometry::abstract_mapping* mapping, IfcSchema::Ifc (object, &IfcSchema::IfcObject::IsDefinedBy, &IfcSchema::IfcRelDefinesByProperties::RelatingPropertyDefinition); +#ifdef SCHEMAS_HAS_IfcPropertySetDefinitionSet aggregate_of::ptr property_set_sets = get_related (object, &IfcSchema::IfcObject::IsDefinedBy, &IfcSchema::IfcRelDefinesByProperties::RelatingPropertyDefinition); @@ -312,6 +313,7 @@ ptree* descend(ifcopenshell::geometry::abstract_mapping* mapping, IfcSchema::Ifc for (auto& s : *property_set_sets) { property_sets->push((decltype(property_sets))*s); } +#endif for (IfcSchema::IfcPropertySetDefinition::list::it it = property_sets->begin(); it != property_sets->end(); ++it) { IfcSchema::IfcPropertySetDefinition* pset = *it;