mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
Xml serializer proper specialization
This commit is contained in:
@@ -248,7 +248,7 @@ auto get_related(T t, F f, G g) {
|
|||||||
// Descends into the tree by recursing into IfcRelContainedInSpatialStructure,
|
// Descends into the tree by recursing into IfcRelContainedInSpatialStructure,
|
||||||
// IfcRelDecomposes, IfcRelDefinesByType, IfcRelDefinesByProperties relations.
|
// IfcRelDecomposes, IfcRelDefinesByType, IfcRelDefinesByProperties relations.
|
||||||
template <>
|
template <>
|
||||||
ptree* descend(ifcopenshell::geometry::abstract_mapping* mapping, const IfcSchema::IfcObjectDefinition& product, ptree& tree, express::Base parent) {
|
ptree* descend(ifcopenshell::geometry::abstract_mapping* mapping, IfcSchema::IfcObjectDefinition product, ptree& tree, express::Base parent) {
|
||||||
if (product.declaration().is(IfcSchema::IfcElement::Class())) {
|
if (product.declaration().is(IfcSchema::IfcElement::Class())) {
|
||||||
auto voids = product.as<IfcSchema::IfcElement>().FillsVoids();
|
auto voids = product.as<IfcSchema::IfcElement>().FillsVoids();
|
||||||
if (voids.size() == 1 && voids.front().RelatingOpeningElement() != parent) {
|
if (voids.size() == 1 && voids.front().RelatingOpeningElement() != parent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user