Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2022-08-12 10:53:44 +0300
committerYuSanka <yusanka@gmail.com>2022-08-12 12:09:30 +0300
commit522b3f6d984d974c70efa7b6a8a64da38e96f1e5 (patch)
tree47c5295bfd6612cc2b267026e94c93fbe82ae598
parent7ebd0bbb3be9a96a245c172dcae5e9b9458677da (diff)
Follow-up 370e8bd752e3f7c97b9804a56dc417dfb362cce8 - Update 3D-scene after splitting of the unprintable object
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.cpp2
-rw-r--r--src/slic3r/GUI/Plater.cpp2
2 files changed, 4 insertions, 0 deletions
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);
}
}
}