diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 79de5bb138..e1e2ed976a 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -10906,13 +10906,6 @@ void Plater::priv::reset(bool apply_presets_change, bool reload_presets) // clear_objects() only drops the ModelObjects; the CAD recipe is Model-level state and would // otherwise be written into every project saved for the rest of the session. model.cad_recipe.clear(); -#ifdef SLIC3R_CAD - // Same reason, one level up: the Design tab keeps the editable document, not the Model, so - // clearing the recipe alone leaves the tab showing the previous project's feature tree — - // and its next edit syncs that tree straight back into the new project. - if (DesignPanel* design = DesignPanel::if_built()) - design->clear_document(); -#endif assemble_view->get_canvas3d()->reset_explosion_ratio(); update(); @@ -10923,6 +10916,17 @@ void Plater::priv::reset(bool apply_presets_change, bool reload_presets) object_list_changed(); } +#ifdef SLIC3R_CAD + // Same reason as the recipe, one level up: the Design tab keeps the editable document, not + // the Model, so clearing the recipe alone leaves the tab showing the previous project's + // feature tree — and its next edit syncs that tree straight back into the new project. + // It runs only once the scene is rebuilt: clearing hands the keyboard to the Design canvas, + // and when the app has no focus that activates the main window, whose 3D view repaints on + // the spot. Before update() that repaint picks against the plates reinit() deleted. + if (DesignPanel* design = DesignPanel::if_built()) + design->clear_document(); +#endif + project.reset(); wxGetApp().sidebar().printer_combox()->clear_selected_dev_id();