From feac80aa9d1898f531f2d01f0f53a329d6f4758a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 1 Sep 2020 12:22:23 +0200 Subject: [PATCH] Assign material name to taxonomy::style --- src/ifcgeom/schema/mapping.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ifcgeom/schema/mapping.cpp b/src/ifcgeom/schema/mapping.cpp index f07fea6fd6..ce0db211e9 100644 --- a/src/ifcgeom/schema/mapping.cpp +++ b/src/ifcgeom/schema/mapping.cpp @@ -974,6 +974,7 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcMaterial* material) { if (styles->size() == 1) { auto s = map(*styles->begin()); if (s) { + ((taxonomy::style*) s)->name = material->Name(); return s; } }