From 522b3f6d984d974c70efa7b6a8a64da38e96f1e5 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 12 Aug 2022 09:53:44 +0200 Subject: [PATCH] Follow-up 370e8bd752e3f7c97b9804a56dc417dfb362cce8 - Update 3D-scene after splitting of the unprintable object --- src/slic3r/GUI/GUI_ObjectList.cpp | 2 ++ src/slic3r/GUI/Plater.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index d2e154eab..cb93288d1 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -2035,6 +2035,8 @@ void ObjectList::split() Expand(parent); changed_object(obj_idx); + // update printable state for new volumes on canvas3D + wxGetApp().plater()->canvas3D()->update_instance_printable_state_for_object(obj_idx); } void ObjectList::merge(bool to_multipart_object) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 8961d260a..45884cc9d 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -3136,6 +3136,8 @@ void Plater::priv::split_object() for (size_t idx : idxs) { get_selection().add_object((unsigned int)idx, false); + // update printable state for new volumes on canvas3D + q->canvas3D()->update_instance_printable_state_for_object(idx); } } }