diff options
author | YuSanka <yusanka@gmail.com> | 2021-12-15 11:03:38 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2021-12-15 11:03:38 +0300 |
commit | 322583bc7876d8370f4fb713e2e57d032685a37a (patch) | |
tree | 432023cf5b33ff89ba16ba4a2931f09f8e6ef4be | |
parent | caff954aa78c4e0d5a170ab18802af3c2f66ebed (diff) |
Revert of the https://github.com/prusa3d/PrusaSlicer/commit/8b3e4136338c5e758ed0f0d4ccbb66fb5e4a911f, which was caused the issue #7498
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 417ab60fa..2f2db22a7 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1769,14 +1769,13 @@ void TabPrint::update() // Note: This workaround works till "support_material" and "overhangs" is exclusive sets of mutually no-exclusive parameters. // But it should be corrected when we will have more such sets. // Disable check of the compatibility of the "support_material" and "overhangs" options for saved user profile - // or for profile which was loaded from 3mf -// if (!m_config_manipulation.is_initialized_support_material_overhangs_queried()) - if (bool support_material_overhangs_queried = m_config->opt_bool("support_material") && !m_config->opt_bool("overhangs")) + // NOTE: Initialization of the support_material_overhangs_queried value have to be processed just ones + if (!m_config_manipulation.is_initialized_support_material_overhangs_queried()) { const Preset& selected_preset = m_preset_bundle->prints.get_selected_preset(); bool is_user_and_saved_preset = !selected_preset.is_system && !selected_preset.is_dirty; - bool is_saved_in_3mf_preset = selected_preset.is_dirty && !wxGetApp().plater()->is_presets_dirty(); - m_config_manipulation.initialize_support_material_overhangs_queried((is_user_and_saved_preset || is_saved_in_3mf_preset) && support_material_overhangs_queried); + bool support_material_overhangs_queried = m_config->opt_bool("support_material") && !m_config->opt_bool("overhangs"); + m_config_manipulation.initialize_support_material_overhangs_queried(is_user_and_saved_preset && support_material_overhangs_queried); } m_config_manipulation.update_print_fff_config(m_config, true); |