mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 09:22:03 +08:00
New gcode visualization library - Fixed method set_option_color()
This commit is contained in:
parent
144e90f71e
commit
728cf61928
@ -957,8 +957,10 @@ const Color& ViewerImpl::get_option_color(EOptionType type) const
|
||||
void ViewerImpl::set_option_color(EOptionType type, const Color& color)
|
||||
{
|
||||
auto it = m_options_colors.find(type);
|
||||
if (it != m_options_colors.end())
|
||||
if (it != m_options_colors.end()) {
|
||||
it->second = color;
|
||||
m_settings.update_colors = true;
|
||||
}
|
||||
}
|
||||
|
||||
void ViewerImpl::set_travels_radius(float radius)
|
||||
|
Loading…
x
Reference in New Issue
Block a user