FIX: preset is incorrect when opening MW file

jira: STUDIO-9793
Change-Id: Ib1405c5badc4857a506ecea41ce4708eb2f83423
This commit is contained in:
zhimin.zeng 2025-01-14 12:09:20 +08:00 committed by lane.wei
parent 15f33638a1
commit e1d11d814e
2 changed files with 2 additions and 0 deletions

View File

@ -6113,6 +6113,7 @@ void Plater::priv::reset(bool apply_presets_change)
project.reset();
wxGetApp().sidebar().printer_combox()->clear_selected_dev_id();
//BBS: reset all project embedded presets
wxGetApp().preset_bundle->reset_project_embedded_presets();
if (apply_presets_change)

View File

@ -82,6 +82,7 @@ public:
int get_filament_idx() const { return m_filament_idx; }
std::string get_selected_dev_id() const { return m_selected_dev_id; }
void clear_selected_dev_id() { m_selected_dev_id.clear(); }
// BBS
wxString get_tooltip(const Preset& preset);