Follow up fix for bed filling

fixes: 2813db8906
This commit is contained in:
tamasmeszaros 2020-12-02 18:08:30 +01:00
parent b0e5dda489
commit 4e9254ec5a

View file

@ -92,7 +92,9 @@ void FillBedJob::prepare()
// arrangeable (selected) items bed_idx is ignored and the // arrangeable (selected) items bed_idx is ignored and the
// translation is irrelevant. // translation is irrelevant.
double stride = bed_stride(m_plater); double stride = bed_stride(m_plater);
for (auto &p : m_unselected) p.translation(X) -= p.bed_idx * stride; for (auto &p : m_unselected)
if (p.bed_idx > 0)
p.translation(X) -= p.bed_idx * stride;
} }
void FillBedJob::process() void FillBedJob::process()