mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
Disable exception
This commit is contained in:
@@ -923,7 +923,8 @@ void IfcParse::IfcFile::unregister_inverse(unsigned id_from, IfcUtil::IfcBaseCla
|
|||||||
std::vector<unsigned int>& ids = byref[inst->entity->id()];
|
std::vector<unsigned int>& ids = byref[inst->entity->id()];
|
||||||
std::vector<unsigned int>::iterator it = std::find(ids.begin(), ids.end(), id_from);
|
std::vector<unsigned int>::iterator it = std::find(ids.begin(), ids.end(), id_from);
|
||||||
if (it == ids.end()) {
|
if (it == ids.end()) {
|
||||||
throw IfcParse::IfcException("Instance not found among inverses");
|
// @todo inverses also need to be populated when multiple instances are added to a new file.
|
||||||
|
// throw IfcParse::IfcException("Instance not found among inverses");
|
||||||
} else {
|
} else {
|
||||||
ids.erase(it);
|
ids.erase(it);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user