Fix of a regression issue since ee38d80318
1) load object 2) Switch FFF to SLA or vice versa 3) Undo -> Crash Fixed by deselecting the side panel before loading profiles of the other technology.
This commit is contained in:
parent
3dff253b64
commit
86b2817da5
1 changed files with 3 additions and 0 deletions
|
@ -3946,6 +3946,9 @@ void Plater::priv::undo_redo_to(std::vector<UndoRedo::Snapshot>::const_iterator
|
|||
AppConfig *app_config = wxGetApp().app_config;
|
||||
app_config->set("presets", "printer", (new_printer_technology == ptFFF) ? m_last_fff_printer_profile_name : m_last_sla_printer_profile_name);
|
||||
wxGetApp().preset_bundle->load_presets(*app_config);
|
||||
// load_current_presets() calls Tab::load_current_preset() -> TabPrint::update() -> Object_list::update_and_show_object_settings_item(),
|
||||
// but the Object list still keeps pointer to the old Model. Avoid a crash by removing selection first.
|
||||
this->sidebar->obj_list()->unselect_objects();
|
||||
// Load the currently selected preset into the GUI, update the preset selection box.
|
||||
// This also switches the printer technology based on the printer technology of the active printer profile.
|
||||
wxGetApp().load_current_presets();
|
||||
|
|
Loading…
Reference in a new issue