Follow-up 7eebd56b5f - fixed a typo

+ added add_negative.svg for dark mode
This commit is contained in:
YuSanka 2021-06-02 14:36:49 +02:00
parent 7eebd56b5f
commit 4b5e568f14
4 changed files with 28 additions and 12 deletions

View file

@ -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;
});
}