mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Fix segfault on grid placement. Don't fail on nullptr transformation. #4832
This commit is contained in:
@@ -42,7 +42,13 @@ namespace IfcGeom {
|
||||
: settings_(settings)
|
||||
, matrix_(matrix)
|
||||
{}
|
||||
const ifcopenshell::geometry::taxonomy::matrix4::ptr& data() const { return matrix_; }
|
||||
const ifcopenshell::geometry::taxonomy::matrix4::ptr& data() const {
|
||||
if (matrix_) {
|
||||
return matrix_;
|
||||
}
|
||||
static ifcopenshell::geometry::taxonomy::matrix4::ptr iden = ifcopenshell::geometry::taxonomy::make<ifcopenshell::geometry::taxonomy::matrix4>();
|
||||
return iden;
|
||||
}
|
||||
};
|
||||
|
||||
class Element {
|
||||
|
||||
Reference in New Issue
Block a user