mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-26 14:44:26 +08:00
Don't use ->full_print_config() if not necessary, it is quite expensive!
This commit is contained in:
parent
77e9e23cea
commit
dceaf73ff3
@ -649,7 +649,7 @@ void Preview::update_double_slider(const std::vector<double>& layers_z, bool for
|
|||||||
|
|
||||||
bool color_print_enable = (wxGetApp().plater()->printer_technology() == ptFFF);
|
bool color_print_enable = (wxGetApp().plater()->printer_technology() == ptFFF);
|
||||||
if (color_print_enable) {
|
if (color_print_enable) {
|
||||||
const auto& cfg = wxGetApp().preset_bundle->full_config();
|
const DynamicPrintConfig& cfg = wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||||
if (cfg.opt<ConfigOptionFloats>("nozzle_diameter")->values.size() > 1)
|
if (cfg.opt<ConfigOptionFloats>("nozzle_diameter")->values.size() > 1)
|
||||||
color_print_enable = false;
|
color_print_enable = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user