mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 21:12:07 +00:00
#2156 Don't try to convert unset placements in element hierarchy parsing
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user