From 22cd1e8b9e1d4492c2e9db861127343eb31ebaa2 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 1 Jul 2024 19:55:14 +0200 Subject: [PATCH] Another case of mutability causing havoc --- src/ifcgeom/mapping/IfcVector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcgeom/mapping/IfcVector.cpp b/src/ifcgeom/mapping/IfcVector.cpp index c88e22a774..04ac6474cc 100644 --- a/src/ifcgeom/mapping/IfcVector.cpp +++ b/src/ifcgeom/mapping/IfcVector.cpp @@ -23,6 +23,7 @@ using namespace ifcopenshell::geometry; taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) { auto d = taxonomy::cast(map(inst->Orientation())); + d = taxonomy::direction3::ptr(d->clone_()); d->components() *= inst->Magnitude() * length_unit_; return d; }