From 9bb74d92c744f191ffb1c529bcaf5caba5396c87 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 30 Aug 2022 14:32:03 +0200 Subject: [PATCH] Fix for #8380 - Disable/Remove "Sliced Object "*" looks like a logo or a sign Preferences: Added option "Allow automatically color change" --- src/libslic3r/AppConfig.cpp | 3 +++ src/slic3r/GUI/GUI_Preview.cpp | 3 ++- src/slic3r/GUI/Preferences.cpp | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp index 3ea1d80e4..d3b7a3b85 100644 --- a/src/libslic3r/AppConfig.cpp +++ b/src/libslic3r/AppConfig.cpp @@ -184,6 +184,9 @@ void AppConfig::set_defaults() if (get("show_hints").empty()) set("show_hints", "1"); + if (get("allow_auto_color_change").empty()) + set("allow_auto_color_change", "1"); + if (get("allow_ip_resolve").empty()) set("allow_ip_resolve", "1"); diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index 9e2fe46f6..feda14a7f 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -706,7 +706,8 @@ void Preview::update_layers_slider(const std::vector& layers_z, bool kee } // Suggest the auto color change, if model looks like sign - if (m_layers_slider->IsNewPrint()) + if (wxGetApp().app_config->get("allow_auto_color_change") == "1" && + m_layers_slider->IsNewPrint()) { const Print& print = wxGetApp().plater()->fff_print(); diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index 20fcedd05..9e526cc3d 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -459,6 +459,11 @@ void PreferencesDialog::build() L("If enabled, shows non-manifold edges."), app_config->get("non_manifold_edges") == "1"); + append_bool_option(m_optgroup_gui, "allow_auto_color_change", + L("Allow automatically color change"), + L("If enabled, related notification will be shown, when sliced object looks like a logo or a sign."), + app_config->get("allow_auto_color_change") == "1"); + #ifdef _MSW_DARK_MODE append_bool_option(m_optgroup_gui, "tabs_as_menu", L("Set settings tabs as menu items (experimental)"),