1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

Added call a toggle printable property for instance from ObjectList

This commit is contained in:
YuSanka
2019-08-05 10:05:28 +02:00
parent 825446d145
commit e8f27c6407
4 changed files with 22 additions and 8 deletions
+2 -1
View File
@@ -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;
}