Another case of mutability causing havoc

This commit is contained in:
Thomas Krijnen
2024-07-01 19:55:14 +02:00
parent 0f8f6419e9
commit 22cd1e8b9e
+1
View File
@@ -23,6 +23,7 @@ using namespace ifcopenshell::geometry;
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) {
auto d = taxonomy::cast<taxonomy::direction3>(map(inst->Orientation()));
d = taxonomy::direction3::ptr(d->clone_());
d->components() *= inst->Magnitude() * length_unit_;
return d;
}