#2156 Don't try to convert unset placements in element hierarchy parsing

This commit is contained in:
Thomas Krijnen
2022-04-23 10:51:16 +02:00
parent bd16345b76
commit 2081dc4c08
@@ -1045,6 +1045,7 @@ namespace IfcGeom {
Logger::Error("Failed to find decomposing entity"); Logger::Error("Failed to find decomposing entity");
} }
if (ifc_product->ObjectPlacement()) {
try { try {
kernel.convert(ifc_product->ObjectPlacement(), trsf); kernel.convert(ifc_product->ObjectPlacement(), trsf);
} catch (const std::exception& e) { } catch (const std::exception& e) {
@@ -1053,6 +1054,7 @@ namespace IfcGeom {
Logger::Error("Failed to construct placement"); Logger::Error("Failed to construct placement");
} }
} }
}
} catch (const std::exception& e) { } catch (const std::exception& e) {
Logger::Error(e); Logger::Error(e);
} catch (const Standard_Failure& e) { } catch (const Standard_Failure& e) {