mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix latebound entity inheritance hierarchy wrt id() #5822 - not ideal, because BaseEntity.declation now returns declaration
This commit is contained in:
@@ -207,10 +207,10 @@ IfcUtil::IfcBaseEntity::IfcBaseEntity(IfcEntityInstanceData&& data)
|
||||
{}
|
||||
|
||||
void IfcUtil::IfcBaseEntity::populate_derived() {
|
||||
for (auto it = declaration().derived().begin(); it != declaration().derived().end(); ++it) {
|
||||
for (auto it = declaration().as_entity()->derived().begin(); it != declaration().as_entity()->derived().end(); ++it) {
|
||||
if (*it) {
|
||||
this->data().storage_.set(
|
||||
std::distance(declaration().derived().begin(), it),
|
||||
std::distance(declaration().as_entity()->derived().begin(), it),
|
||||
Derived{}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user