mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 19:01:59 +08:00
Fine tune arrange alignment enabling rules for XL
This commit is contained in:
parent
aab6299458
commit
437c0814b4
@ -1063,17 +1063,16 @@ PrinterTechnology GLCanvas3D::current_printer_technology() const
|
||||
return m_process->current_printer_technology();
|
||||
}
|
||||
|
||||
bool GLCanvas3D::is_arrange_alignment_enabled()
|
||||
bool GLCanvas3D::is_arrange_alignment_enabled() const
|
||||
{
|
||||
static constexpr const char *ALIGN_ONLY_FOR = "MINI";
|
||||
static constexpr const char *ALIGN_ONLY_FOR = "XL";
|
||||
|
||||
bool ret = false;
|
||||
|
||||
const Preset &preset = wxGetApp().preset_bundle->get_presets(Preset::TYPE_PRINTER).get_selected_preset();
|
||||
auto *printer_model = m_config->opt<ConfigOptionString>("printer_model");
|
||||
|
||||
auto *printermodel = PresetUtils::system_printer_model(preset);
|
||||
if (printermodel)
|
||||
ret = printermodel->family == ALIGN_ONLY_FOR;
|
||||
if (printer_model)
|
||||
ret = boost::algorithm::contains(printer_model->value, ALIGN_ONLY_FOR);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -550,7 +550,7 @@ private:
|
||||
|
||||
PrinterTechnology current_printer_technology() const;
|
||||
|
||||
static bool is_arrange_alignment_enabled();
|
||||
bool is_arrange_alignment_enabled() const;
|
||||
|
||||
template<class Self>
|
||||
static auto & get_arrange_settings_ref(Self *self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user