mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
Don't try and set empty aggregates (todo: see if they are still needed with the type-aware upgrade-based parse mode)
This commit is contained in:
@@ -2616,6 +2616,8 @@ express::Base file::add_entity(const express::Base& entity, int id) {
|
||||
if constexpr (std::is_same_v<U, express::Base>) {
|
||||
} else if constexpr (std::is_same_v<U, std::vector<express::Base>>) {
|
||||
} else if constexpr (std::is_same_v<U, std::vector<std::vector<express::Base>>>) {
|
||||
} else if constexpr (std::is_same_v<U, empty_aggregate_t>) {
|
||||
} else if constexpr (std::is_same_v<U, empty_aggregate_of_aggregate_t>) {
|
||||
} else {
|
||||
new_entity.set_attribute_value(i, v);
|
||||
}
|
||||
|
||||
@@ -108,6 +108,8 @@ void ifcopenshell::spf_header::assign(const spf_header& other) {
|
||||
if constexpr (std::is_same_v<U, express::Base>) {
|
||||
} else if constexpr (std::is_same_v<U, std::vector<express::Base>>) {
|
||||
} else if constexpr (std::is_same_v<U, std::vector<std::vector<express::Base>>>) {
|
||||
} else if constexpr (std::is_same_v<U, empty_aggregate_t>) {
|
||||
} else if constexpr (std::is_same_v<U, empty_aggregate_of_aggregate_t>) {
|
||||
} else {
|
||||
new_entity.set_attribute_value(i, v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user