default to blank material with IfcMaterial name

This commit is contained in:
Otso Alho
2018-03-13 11:00:23 +02:00
committed by Thomas Krijnen
parent f849434f24
commit fe1cb9e92b
+2 -1
View File
@@ -131,7 +131,8 @@ const IfcGeom::SurfaceStyle* IfcGeom::Kernel::get_style(const IfcSchema::IfcMate
}
}
}
return 0;
IfcGeom::SurfaceStyle material_style = IfcGeom::SurfaceStyle(material->id(), material->Name());
return &(style_cache[material->id()] = material_style);
}
static std::map<std::string, IfcGeom::SurfaceStyle> default_materials;