mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
Another case of mutability causing havoc
This commit is contained in:
@@ -23,6 +23,7 @@ using namespace ifcopenshell::geometry;
|
|||||||
|
|
||||||
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) {
|
taxonomy::ptr mapping::map_impl(const IfcSchema::IfcVector* inst) {
|
||||||
auto d = taxonomy::cast<taxonomy::direction3>(map(inst->Orientation()));
|
auto d = taxonomy::cast<taxonomy::direction3>(map(inst->Orientation()));
|
||||||
|
d = taxonomy::direction3::ptr(d->clone_());
|
||||||
d->components() *= inst->Magnitude() * length_unit_;
|
d->components() *= inst->Magnitude() * length_unit_;
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user