mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
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:
@@ -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();
|
||||
|
||||
@@ -120,6 +120,8 @@ public:
|
||||
//BBS: check whether this is the only edited filament
|
||||
bool is_the_only_edited_filament(unsigned int filament_index);
|
||||
|
||||
void reset_default_nozzle_volume_type();
|
||||
|
||||
std::vector<int> get_used_tpu_filaments(const std::vector<int> &used_filaments);
|
||||
// Orca: update selected filament and print
|
||||
void update_selections(AppConfig &config);
|
||||
|
||||
@@ -4277,6 +4277,7 @@ void TabPrinter::extruders_count_changed(size_t extruders_count)
|
||||
m_extruders_count = extruders_count;
|
||||
m_preset_bundle->printers.get_edited_preset().set_num_extruders(extruders_count);
|
||||
m_preset_bundle->update_multi_material_filament_presets();
|
||||
m_preset_bundle->reset_default_nozzle_volume_type();
|
||||
is_count_changed = true;
|
||||
|
||||
wxGetApp().plater()->get_partplate_list().on_extruder_count_changed((int)m_extruders_count);
|
||||
|
||||
Reference in New Issue
Block a user