Fix for #10636 - [2.6.0 ß2] Filament color selected in Filament menu does not transfer to main screen
This commit is contained in:
parent
89c5b30210
commit
10143d6ccd
@ -4039,11 +4039,11 @@ void Plater::priv::on_select_preset(wxCommandEvent &evt)
|
||||
// revert previously selection
|
||||
const std::string& old_name = wxGetApp().preset_bundle->filaments.get_edited_preset().name;
|
||||
wxGetApp().preset_bundle->set_filament_preset(idx, old_name);
|
||||
combo->update();
|
||||
}
|
||||
else
|
||||
// Synchronize config.ini with the current selections.
|
||||
wxGetApp().preset_bundle->export_selections(*wxGetApp().app_config);
|
||||
combo->update();
|
||||
}
|
||||
else if (select_preset) {
|
||||
wxWindowUpdateLocker noUpdates(sidebar->presets_panel());
|
||||
|
@ -820,6 +820,8 @@ void PlaterPresetComboBox::update()
|
||||
// Extruder color is not defined.
|
||||
extruder_color.clear();
|
||||
selected_filament_preset = extruder_filaments.get_selected_preset();
|
||||
if (selected_filament_preset->is_dirty)
|
||||
selected_filament_preset = &m_preset_bundle->filaments.get_edited_preset();
|
||||
assert(selected_filament_preset);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user