From 004b23e362e38154197401148224565f1ad5f305 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Fri, 21 Feb 2020 11:03:03 +0100 Subject: [PATCH] Fix of Bug: Changing print settings resets filament settings #3675 When switching a Print profile, the modifications of an active Filament profile were incorrecly dropped even if the active Filament profile was compatible with the newly selected Print profile. --- src/slic3r/GUI/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index e0cfe5be6..541be423d 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -2795,7 +2795,7 @@ void Tab::select_preset(std::string preset_name, bool delete_current) if (! canceled) { // The preset will be switched to a different, compatible preset, or the '-- default --'. m_dependent_tabs.emplace_back((printer_technology == ptFFF) ? Preset::Type::TYPE_FILAMENT : Preset::Type::TYPE_SLA_MATERIAL); - if (old_preset_dirty) + if (old_preset_dirty && ! new_preset_compatible) dependent.discard_current_changes(); } } else if (printer_tab) {