diff --git a/src/libslic3r/AppConfig.cpp b/src/libslic3r/AppConfig.cpp index a5e9444cf6..8b451a64a4 100644 --- a/src/libslic3r/AppConfig.cpp +++ b/src/libslic3r/AppConfig.cpp @@ -63,9 +63,6 @@ void AppConfig::reset() void AppConfig::set_defaults() { if (m_mode == EAppMode::Editor) { - // Reset the empty fields to defaults. - if (get("autocenter").empty()) - set("autocenter", "0"); // Disable background processing by default as it is not stable. if (get("background_processing").empty()) set("background_processing", "0"); diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index 04e1683023..9f8bf879f8 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -1533,12 +1533,6 @@ std::pair PresetBundle::load_configbundle( if (dst) unescape_strings_cstyle(kvp.second.data(), *dst); } - } else if (section.first == "settings") { - // Load the settings. - for (auto &kvp : section.second) { - if (kvp.first == "autocenter") { - } - } } else // Ignore an unknown section. continue; @@ -2045,13 +2039,6 @@ void PresetBundle::export_configbundle(const std::string &path, bool export_syst if (export_physical_printers && this->physical_printers.get_selected_idx() >= 0) c << "physical_printer = " << this->physical_printers.get_selected_printer_name() << std::endl; -#if 0 - // Export the following setting values from the provided setting repository. - static const char *settings_keys[] = { "autocenter" }; - c << "[settings]" << std::endl; - for (size_t i = 0; i < sizeof(settings_keys) / sizeof(settings_keys[0]); ++ i) - c << settings_keys[i] << " = " << settings.serialize(settings_keys[i]) << std::endl; -#endif c.close(); } diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cbead96a7b..0cb81d63fb 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1090,11 +1090,6 @@ Plater::priv::~priv() void Plater::priv::update(unsigned int flags) { - // the following line, when enabled, causes flickering on NVIDIA graphics cards -// wxWindowUpdateLocker freeze_guard(q); - if (get_config_bool("autocenter")) - model.center_instances_around_point(this->bed.build_volume().bed_center()); - unsigned int update_status = 0; const bool force_background_processing_restart = this->printer_technology == ptSLA || (flags & (unsigned int)UpdateParams::FORCE_BACKGROUND_PROCESSING_UPDATE); if (force_background_processing_restart) @@ -1108,9 +1103,6 @@ void Plater::priv::update(unsigned int flags) this->restart_background_process(update_status); else this->schedule_background_process(); - - if (get_config_bool("autocenter") && this->sidebar->obj_manipul()->IsShown()) - this->sidebar->obj_manipul()->UpdateAndShow(true); } void Plater::priv::select_view(const std::string& direction) @@ -5526,9 +5518,6 @@ void Plater::increase_instances(size_t num, int obj_idx, int inst_idx) model_object->add_instance(trafo); } - if (p->get_config_bool("autocenter")) - arrange(); - p->update(); p->get_selection().add_instance(obj_idx, (int)model_object->instances.size() - 1); diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index 0818d816b0..eafaa0b1b4 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -301,11 +301,6 @@ void PreferencesDialog::build() L("If this is enabled, Slic3r will prompt the last output directory instead of the one containing the input files."), app_config->has("remember_output_path") ? app_config->get_bool("remember_output_path") : true); - append_bool_option(m_optgroup_general, "autocenter", - L("Auto-center parts"), - L("If this is enabled, Slic3r will auto-center objects around the print bed center."), - app_config->get_bool("autocenter")); - append_bool_option(m_optgroup_general, "background_processing", L("Background processing"), L("If this is enabled, Slic3r will pre-process objects as soon "