From 4e0c22f798f15071a6a747d5beda4ba672d47e59 Mon Sep 17 00:00:00 2001 From: "wenjie.guo" Date: Thu, 16 Nov 2023 17:14:32 +0800 Subject: [PATCH] FIX: Filament preset is the same with the first one Jira: STUDIO-4519 Filament preset is the same wit the first one, it should align with the last one. Signed-off-by: wenjie.guo Change-Id: I304d0ff0fbc1c8948d410ea552e4d42b6a4e8fd9 --- src/slic3r/GUI/Plater.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 4817c21cc..dae14c7c1 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1453,10 +1453,12 @@ void Sidebar::on_filaments_change(size_t num_filaments) { PlaterPresetComboBox* choice/*{ nullptr }*/; init_filament_combo(&choice, i); + int last_selection = choices.back()->GetSelection(); choices.push_back(choice); // initialize selection choice->update(); + choice->SetSelection(last_selection); ++i; }