FIX: the nums of nozzle_volume_type is incorrect

when save MW 3mf file as multi-extruder
jira:none

Change-Id: I848e348277fb047c2c3569508d2adbe940e40255
(cherry picked from commit 17edbd8cd57b761027bb3c1f4d318578ab27430e)
This commit is contained in:
zhimin.zeng
2024-11-26 10:47:36 +08:00
committed by Noisyfox
parent fe6338449e
commit b871e9318f
3 changed files with 9 additions and 0 deletions

View File

@@ -2175,6 +2175,12 @@ bool PresetBundle::is_the_only_edited_filament(unsigned int filament_index)
return true;
}
void PresetBundle::reset_default_nozzle_volume_type()
{
Preset& current_printer = this->printers.get_edited_preset();
this->project_config.option<ConfigOptionEnumsGeneric>("nozzle_volume_type")->values = current_printer.config.option<ConfigOptionEnumsGeneric>("default_nozzle_volume_type")->values;
}
int PresetBundle::get_printer_extruder_count() const
{
const Preset& printer_preset = this->printers.get_edited_preset();