diff options
author | bubnikv <bubnikv@gmail.com> | 2020-02-21 13:03:03 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2020-02-21 13:03:03 +0300 |
commit | 004b23e362e38154197401148224565f1ad5f305 (patch) | |
tree | b21f008e7d6a197eac1e8b3e56bd2d05151cb9db /src/slic3r/GUI | |
parent | 8be3d074fd5bc0449c1c968f6e63c294008973bb (diff) |
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.
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |