Removed the unused force_autocenter parameter from Plater::update()
This commit is contained in:
parent
ee99fa2c64
commit
bc9de8956a
2 changed files with 5 additions and 5 deletions
|
@ -930,7 +930,7 @@ struct Plater::priv
|
||||||
|
|
||||||
priv(Plater *q, MainFrame *main_frame);
|
priv(Plater *q, MainFrame *main_frame);
|
||||||
|
|
||||||
void update(bool force_autocenter = false);
|
void update();
|
||||||
void select_view(const std::string& direction);
|
void select_view(const std::string& direction);
|
||||||
void update_ui_from_settings();
|
void update_ui_from_settings();
|
||||||
ProgressStatusBar* statusbar();
|
ProgressStatusBar* statusbar();
|
||||||
|
@ -1144,10 +1144,10 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
||||||
q->Layout();
|
q->Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plater::priv::update(bool force_autocenter)
|
void Plater::priv::update()
|
||||||
{
|
{
|
||||||
wxWindowUpdateLocker freeze_guard(q);
|
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");
|
// auto *bed_shape_opt = config->opt<ConfigOptionPoints>("bed_shape");
|
||||||
// const auto bed_shape = Slic3r::Polygon::new_scale(bed_shape_opt->values);
|
// const auto bed_shape = Slic3r::Polygon::new_scale(bed_shape_opt->values);
|
||||||
// const BoundingBox bed_shape_bb = bed_shape.bounding_box();
|
// 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); }
|
void Plater::load_files(const std::vector<fs::path> &input_files) { p->load_files(input_files); }
|
||||||
#endif // ENABLE_NEW_MENU_LAYOUT
|
#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); }
|
void Plater::select_view(const std::string& direction) { p->select_view(direction); }
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ public:
|
||||||
void load_files(const std::vector<boost::filesystem::path> &input_files);
|
void load_files(const std::vector<boost::filesystem::path> &input_files);
|
||||||
#endif // ENABLE_NEW_MENU_LAYOUT
|
#endif // ENABLE_NEW_MENU_LAYOUT
|
||||||
|
|
||||||
void update(bool force_autocenter = false);
|
void update();
|
||||||
void select_view(const std::string& direction);
|
void select_view(const std::string& direction);
|
||||||
|
|
||||||
void remove(size_t obj_idx);
|
void remove(size_t obj_idx);
|
||||||
|
|
Loading…
Reference in a new issue