diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index db97f70967..158d605173 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -499,7 +499,7 @@ int main(int argc, char** argv) if (!default_material_filename.empty()) { try { - IfcGeom::set_default_style(default_material_filename); + IfcGeom::set_default_style_file(default_material_filename); } catch (const std::exception& e) { std::cerr << "[Error] Could not read default material file " << default_material_filename << ":" << std::endl; std::cerr << e.what() << std::endl; diff --git a/src/ifcgeom/IfcGeomRenderStyles.cpp b/src/ifcgeom/IfcGeomRenderStyles.cpp index 9c10ca499a..c47f10a236 100644 --- a/src/ifcgeom/IfcGeomRenderStyles.cpp +++ b/src/ifcgeom/IfcGeomRenderStyles.cpp @@ -195,7 +195,7 @@ boost::optional read_colour_component(con return IfcGeom::SurfaceStyle::ColorComponent(rgb[0], rgb[1], rgb[2]); } -void IfcGeom::set_default_style(const std::string& json_file) { +void IfcGeom::set_default_style_file(const std::string& json_file) { if (!default_materials_initialized) InitDefaultMaterials(); default_materials.clear(); diff --git a/src/ifcgeom/IfcGeomRenderStyles.h b/src/ifcgeom/IfcGeomRenderStyles.h index 03c34e2702..1ffe03149b 100644 --- a/src/ifcgeom/IfcGeomRenderStyles.h +++ b/src/ifcgeom/IfcGeomRenderStyles.h @@ -97,7 +97,7 @@ namespace IfcGeom { }; IFC_GEOM_API const SurfaceStyle* get_default_style(const std::string& ifc_type); - IFC_GEOM_API void set_default_style(const std::string& json_file); + IFC_GEOM_API void set_default_style_file(const std::string& json_file); } #endif