Fix jumping hidden items larger than the bed after hitting arrange

This commit is contained in:
tamasmeszaros 2022-09-14 13:43:57 +02:00
parent 369e08aed1
commit c1fd265d18

View File

@ -239,7 +239,9 @@ void ArrangeJob::finalize(bool canceled, std::exception_ptr &eptr) {
// Move the unprintable items to the last virtual bed. // Move the unprintable items to the last virtual bed.
for (ArrangePolygon &ap : m_unprintable) { for (ArrangePolygon &ap : m_unprintable) {
ap.bed_idx += beds + 1; if (ap.bed_idx >= 0)
ap.bed_idx += beds + 1;
ap.apply(); ap.apply();
} }