mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
#2156 Don't try to convert unset placements in element hierarchy parsing
This commit is contained in:
@@ -1045,12 +1045,14 @@ namespace IfcGeom {
|
|||||||
Logger::Error("Failed to find decomposing entity");
|
Logger::Error("Failed to find decomposing entity");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (ifc_product->ObjectPlacement()) {
|
||||||
kernel.convert(ifc_product->ObjectPlacement(), trsf);
|
try {
|
||||||
} catch (const std::exception& e) {
|
kernel.convert(ifc_product->ObjectPlacement(), trsf);
|
||||||
Logger::Error(e);
|
} catch (const std::exception& e) {
|
||||||
} catch (...) {
|
Logger::Error(e);
|
||||||
Logger::Error("Failed to construct placement");
|
} catch (...) {
|
||||||
|
Logger::Error("Failed to construct placement");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user