mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +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)
|
: settings_(settings)
|
||||||
, matrix_(matrix)
|
, 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 {
|
class Element {
|
||||||
|
|||||||
Reference in New Issue
Block a user