From 144e90f71e69a2bc4dd8033a4259778310bcc96f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 9 Jan 2024 11:02:13 +0100 Subject: [PATCH] New gcode visualization library - Fixed method ViewerImpl::set_extrusion_role_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 721f1f5493..99083131e9 100644 --- a/src/libvgcode/src/ViewerImpl.cpp +++ b/src/libvgcode/src/ViewerImpl.cpp @@ -942,8 +942,10 @@ const Color& ViewerImpl::get_extrusion_role_color(EGCodeExtrusionRole role) cons void ViewerImpl::set_extrusion_role_color(EGCodeExtrusionRole role, const Color& color) { auto it = m_extrusion_roles_colors.find(role); - if (it != m_extrusion_roles_colors.end()) + if (it != m_extrusion_roles_colors.end()) { it->second = color; + m_settings.update_colors = true; + } } const Color& ViewerImpl::get_option_color(EOptionType type) const