From 850fbdbe56f18c1b18f1e09d6060198f02a1ef2d Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 7 Aug 2019 15:39:46 +0200 Subject: [PATCH] Added snapshot taking for Set Printable/Unprintable for full object --- src/slic3r/GUI/GUI_ObjectList.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 441e91707..d860e8724 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -3669,7 +3669,13 @@ void ObjectList::toggle_printable_state(wxDataViewItem item) ModelObject* object = (*m_objects)[obj_idx]; // get object's printable and change it - bool printable = !m_objects_model->IsPrintable(item); + const bool printable = !m_objects_model->IsPrintable(item); + + const wxString snapshot_text = wxString::Format("%s %s", + printable ? _(L("Set Printable")) : _(L("Set Unprintable")), + object->name); + take_snapshot(snapshot_text); + // set printable value for all instances in object for (auto inst : object->instances) inst->printable = printable;