From 728cf61928766f178d17c9231b61c99f72c77cf3 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 9 Jan 2024 11:45:23 +0100 Subject: [PATCH] New gcode visualization library - Fixed method set_option_color() --- src/libvgcode/src/ViewerImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libvgcode/src/ViewerImpl.cpp b/src/libvgcode/src/ViewerImpl.cpp index 99083131e9..228c81aeb1 100644 --- a/src/libvgcode/src/ViewerImpl.cpp +++ b/src/libvgcode/src/ViewerImpl.cpp @@ -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)