mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-03 01:05:14 +08:00
Added snapshot taking for Set Printable/Unprintable for full object
This commit is contained in:
parent
d25c5e0473
commit
850fbdbe56
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user