mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-24 03:53:16 +08:00
Improvements in detection of the XL printer model.
This commit is contained in:
parent
9a0ae2cdc3
commit
f600ea2c5b
@ -4685,7 +4685,7 @@ bool is_XL_printer(const DynamicPrintConfig &cfg)
|
|||||||
auto *printer_model = cfg.opt<ConfigOptionString>("printer_model");
|
auto *printer_model = cfg.opt<ConfigOptionString>("printer_model");
|
||||||
|
|
||||||
if (printer_model)
|
if (printer_model)
|
||||||
ret = boost::algorithm::contains(printer_model->value, ALIGN_ONLY_FOR);
|
ret = boost::algorithm::starts_with(printer_model->value, ALIGN_ONLY_FOR);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -6983,7 +6983,7 @@ PlaterAfterLoadAutoArrange::PlaterAfterLoadAutoArrange()
|
|||||||
Plater* plater = wxGetApp().plater();
|
Plater* plater = wxGetApp().plater();
|
||||||
m_enabled = plater->model().objects.empty() &&
|
m_enabled = plater->model().objects.empty() &&
|
||||||
plater->printer_technology() == ptFFF &&
|
plater->printer_technology() == ptFFF &&
|
||||||
plater->fff_print().config().printer_model.value == "XL";
|
is_XL_printer(*plater->config());
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()
|
PlaterAfterLoadAutoArrange::~PlaterAfterLoadAutoArrange()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user