Removed the unused force_autocenter parameter from Plater::update()

This commit is contained in:
bubnikv 2018-11-21 13:32:24 +01:00
parent ee99fa2c64
commit bc9de8956a
2 changed files with 5 additions and 5 deletions

View File

@ -930,7 +930,7 @@ struct Plater::priv
priv(Plater *q, MainFrame *main_frame);
void update(bool force_autocenter = false);
void update();
void select_view(const std::string& direction);
void update_ui_from_settings();
ProgressStatusBar* statusbar();
@ -1144,10 +1144,10 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
q->Layout();
}
void Plater::priv::update(bool force_autocenter)
void Plater::priv::update()
{
wxWindowUpdateLocker freeze_guard(q);
if (get_config("autocenter") == "1" || force_autocenter) {
if (get_config("autocenter") == "1") {
// auto *bed_shape_opt = config->opt<ConfigOptionPoints>("bed_shape");
// const auto bed_shape = Slic3r::Polygon::new_scale(bed_shape_opt->values);
// const BoundingBox bed_shape_bb = bed_shape.bounding_box();
@ -2268,7 +2268,7 @@ void Plater::load_files(const std::vector<fs::path>& input_files, bool load_mode
void Plater::load_files(const std::vector<fs::path> &input_files) { p->load_files(input_files); }
#endif // ENABLE_NEW_MENU_LAYOUT
void Plater::update(bool force_autocenter) { p->update(force_autocenter); }
void Plater::update() { p->update(); }
void Plater::select_view(const std::string& direction) { p->select_view(direction); }

View File

@ -125,7 +125,7 @@ public:
void load_files(const std::vector<boost::filesystem::path> &input_files);
#endif // ENABLE_NEW_MENU_LAYOUT
void update(bool force_autocenter = false);
void update();
void select_view(const std::string& direction);
void remove(size_t obj_idx);