mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-17 05:52:39 +00:00
ObjectList: Fixes
* Fixed update of a warning icon for multi-part object, when some part with errors was deleted * Fixed a crash when selecting non-Object and non-Volume item (in get_mesh_errors_info() was missed check of the obj_idx) + Follow-up https://github.com/prusa3d/PrusaSlicer/commit/1cc7b4ba971e8d04558b8a49869d9ce1647b8f77 - some code refactoring: * fixed RepairedMeshErrors.merge() * get_mesh_errors_count() renamed to get_repaired_errors_count()
This commit is contained in:
@@ -1786,6 +1786,14 @@ bool ObjectDataViewModel::HasWarningIcon(const wxDataViewItem& item) const
|
||||
return node->has_warning_icon();
|
||||
}
|
||||
|
||||
void ObjectDataViewModel::UpdateWarningIcon(const wxDataViewItem& item, const std::string& warning_icon_name)
|
||||
{
|
||||
if (warning_icon_name.empty())
|
||||
DeleteWarningIcon(item, true);
|
||||
else
|
||||
AddWarningIcon(item, warning_icon_name);
|
||||
}
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user