mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Follow-up 7eebd56b5f - fixed a typo
+ added add_negative.svg for dark mode
This commit is contained in:
@@ -725,7 +725,9 @@ void ModelObject::sort_volumes(bool full_sort)
|
||||
// sort have to controll "place" of the support blockers/enforcers. But one of the model parts have to be on the first place.
|
||||
else
|
||||
std::stable_sort(volumes.begin(), volumes.end(), [](ModelVolume* vl, ModelVolume* vr) {
|
||||
return vl->type() > ModelVolumeType::PARAMETER_MODIFIER && vl->type() < vr->type();
|
||||
ModelVolumeType vl_type = vl->type() > ModelVolumeType::PARAMETER_MODIFIER ? vl->type() : ModelVolumeType::PARAMETER_MODIFIER;
|
||||
ModelVolumeType vr_type = vr->type() > ModelVolumeType::PARAMETER_MODIFIER ? vr->type() : ModelVolumeType::PARAMETER_MODIFIER;
|
||||
return vl_type < vr_type;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -3913,7 +3913,7 @@ void ObjectList::apply_volumes_order()
|
||||
if (wxGetApp().app_config->get("order_volumes") != "1" || !m_objects)
|
||||
return;
|
||||
|
||||
for (int obj_idx = 0; m_objects->size(); obj_idx++)
|
||||
for (int obj_idx = 0; obj_idx < m_objects->size(); obj_idx++)
|
||||
reorder_volumes_and_get_selection(obj_idx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user