mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
#1224 update inverse cache upon deletion
This commit is contained in:
@@ -1861,6 +1861,7 @@ void IfcFile::removeEntity(IfcUtil::IfcBaseClass* entity) {
|
|||||||
std::vector<unsigned>& ids = byref_it->second;
|
std::vector<unsigned>& ids = byref_it->second;
|
||||||
ids.erase(std::remove(ids.begin(), ids.end(), id), ids.end());
|
ids.erase(std::remove(ids.begin(), ids.end(), id), ids.end());
|
||||||
}
|
}
|
||||||
|
by_ref_cached_.erase(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user