mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_canvas_manager
This commit is contained in:
commit
96f5430cee
24 changed files with 150 additions and 123 deletions
|
@ -1476,9 +1476,10 @@ void Selection::toggle_instance_printable_state()
|
|||
ModelInstance* instance = model_object->instances[instance_idx];
|
||||
const bool printable = !instance->printable;
|
||||
|
||||
wxString snapshot_text = model_object->instances.size() == 1 ? wxString::Format("%s %s",
|
||||
printable ? _(L("Set Printable")) : _(L("Set Unprintable")), model_object->name) :
|
||||
printable ? _(L("Set Printable Instance")) : _(L("Set Unprintable Instance"));
|
||||
wxString snapshot_text = model_object->instances.size() == 1 ? wxString::FromUTF8((boost::format("%1% %2%")
|
||||
% (printable ? _utf8(L("Set Printable")) : _utf8(L("Set Unprintable")))
|
||||
% model_object->name).str()) :
|
||||
(printable ? _(L("Set Printable Instance")) : _(L("Set Unprintable Instance")));
|
||||
wxGetApp().plater()->take_snapshot(snapshot_text);
|
||||
|
||||
instance->printable = printable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue