mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Added call a toggle printable property for instance from ObjectList
This commit is contained in:
parent
825446d145
commit
e8f27c6407
4 changed files with 22 additions and 8 deletions
|
@ -1657,8 +1657,8 @@ void ObjectDataViewModel::SetVolumeType(const wxDataViewItem &item, const Slic3r
|
|||
}
|
||||
|
||||
wxDataViewItem ObjectDataViewModel::SetPrintableState(
|
||||
PrintIndicator printable,
|
||||
int obj_idx,
|
||||
PrintIndicator printable/* = piUndef*/,
|
||||
int subobj_idx /* = -1*/,
|
||||
ItemType subobj_type/* = itInstance*/)
|
||||
{
|
||||
|
@ -1673,6 +1673,7 @@ wxDataViewItem ObjectDataViewModel::SetPrintableState(
|
|||
if (!node)
|
||||
return wxDataViewItem(0);
|
||||
node->set_printable_icon(printable);
|
||||
ItemChanged(item);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue