mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Don't use ->full_print_config() if not necessary, it is quite expensive!
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user