From 12912f6772b3c11d5df658be1fc8c17ccb5565cc Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Wed, 16 Oct 2024 15:47:27 +0800 Subject: [PATCH] FIX: get nozzle_diameter error jira: none Change-Id: Ic33854a0d7322fe9154910480d2ea3ceae524f79 --- src/slic3r/GUI/PartPlate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 9593a8281..53e43282d 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -575,7 +575,8 @@ void PartPlate::render_logo(bool bottom, bool render_cali) curr_bed_type = proj_cfg.opt_enum(std::string("curr_bed_type")); } int bed_type_idx = (int)curr_bed_type; - bool is_single_extruder = m_print->config().nozzle_diameter.size() == 1; + DynamicPrintConfig *global_config = &wxGetApp().preset_bundle->printers.get_edited_preset().config; + auto is_single_extruder = global_config->option("nozzle_diameter")->size() == 1; if (!is_single_extruder) { bed_type_idx = 0; }