Skip to content

Commit efd0515

Browse files
committed
Propagate unit settings
1 parent 3a687fe commit efd0515

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/ifcgeom/Converter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ using namespace ifcopenshell::geometry;
66

77
ifcopenshell::geometry::Converter::Converter(const std::string& geometry_library, IfcParse::IfcFile* file, ifcopenshell::geometry::Settings& s)
88
: geometry_library_(boost::to_lower_copy(geometry_library))
9-
, settings_(s)
109
{
11-
mapping_ = impl::mapping_implementations().construct(file, settings_);
10+
mapping_ = impl::mapping_implementations().construct(file, s);
1211
kernel_ = kernels::construct(file, geometry_library, mapping_->settings());
12+
// Mapping reads unit information and applies to settings
13+
settings_ = mapping_->settings();
1314
}
1415

1516
namespace {

0 commit comments

Comments
 (0)