mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
default to blank material with IfcMaterial name
This commit is contained in:
committed by
Thomas Krijnen
parent
f849434f24
commit
fe1cb9e92b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user