Little clean-up of ConstVectorOfPtrsAdaptor to be more vector like.

This commit is contained in:
Vojtech Bubnik 2022-10-19 12:32:54 +02:00
parent 71660a281b
commit 24f671e924
2 changed files with 1 additions and 2 deletions
src/libslic3r/GCode

View file

@ -658,7 +658,7 @@ float WipingExtrusions::mark_wiping_extrusions(const Print& print, unsigned int
return std::max(0.f, volume_to_wipe); // Soluble filament cannot be wiped in a random infill, neither the filament after it
// we will sort objects so that dedicated for wiping are at the beginning:
ConstPrintObjectPtrs object_list = print.objects().vector();
ConstPrintObjectPtrs object_list(print.objects().begin(), print.objects().end());
std::sort(object_list.begin(), object_list.end(), [](const PrintObject* a, const PrintObject* b) { return a->config().wipe_into_objects; });
// We will now iterate through