#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
+8 -6
View File
@@ -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) {