Don't use ->full_print_config() if not necessary, it is quite expensive!
This commit is contained in:
parent
77e9e23cea
commit
dceaf73ff3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue