From 353e9519f029be64361b06ec44601f136e634d20 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Wed, 20 May 2026 17:18:22 +0800 Subject: [PATCH] Fix nozzle icon render for certain multi-variant configs --- src/slic3r/GUI/OG_CustomCtrl.cpp | 6 +++--- src/slic3r/GUI/OG_CustomCtrl.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index 62cb0d7351..56ad3b6b12 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -808,7 +808,7 @@ void OG_CustomCtrl::CtrlLine::render(wxDC& dc, wxCoord h_pos, wxCoord v_pos) wxCoord icon_pos = h_pos; if (is_multi_extruder) { static ScalableBitmap multi_extruder(ctrl, "multi_extruder"); - h_pos = draw_act_bmps(dc, wxPoint(h_pos, v_pos), multi_extruder.bmp(), multi_extruder.bmp(), false).x; + h_pos = draw_act_bmps(dc, wxPoint(h_pos, v_pos), multi_extruder.bmp(), multi_extruder.bmp(), false, 0, true).x; } is_url_string = !suppress_hyperlinks && !og_line.label_path.empty(); // BBS @@ -986,12 +986,12 @@ wxPoint OG_CustomCtrl::CtrlLine::draw_blinking_bmp(wxDC& dc, wxPoint pos, bool i return wxPoint(h_pos, v_pos); } -wxPoint OG_CustomCtrl::CtrlLine::draw_act_bmps(wxDC& dc, wxPoint pos, const wxBitmap& bmp_undo_to_sys, const wxBitmap& bmp_undo, bool is_blinking, size_t rect_id) +wxPoint OG_CustomCtrl::CtrlLine::draw_act_bmps(wxDC& dc, wxPoint pos, const wxBitmap& bmp_undo_to_sys, const wxBitmap& bmp_undo, bool is_blinking, size_t rect_id, bool is_main) { #ifndef DISABLE_BLINKING pos = draw_blinking_bmp(dc, pos, is_blinking); #else - if (ctrl->opt_group->split_multi_line) { // BBS + if (ctrl->opt_group->split_multi_line && !is_main) { // BBS const std::vector