FIX: fill in bed may shift objects outside bed

Do not do final align for filling in bed.

Jira: STUDIO-3265
Change-Id: I2ce2ebed575ba05b1d78ec89923f8e91c4de6648
(cherry picked from commit 581aa4fd0ff1c6f64026d7b934d4bd8a79b803ae)
This commit is contained in:
Arthur 2023-06-19 16:37:12 +08:00 committed by Lane.Wei
parent e567afdcb5
commit 9ad9ba213a
3 changed files with 12 additions and 19 deletions

View file

@ -228,6 +228,8 @@ void FillBedJob::process()
params.on_packed = [&do_stop] (const ArrangePolygon &ap) {
do_stop = ap.bed_idx > 0 && ap.priority == 0;
};
// final align用的是凸包在有fixed item的情况下可能找到的参考点位置是错的这里就不做了。见STUDIO-3265
params.do_final_align = false;
arrangement::arrange(m_selected, m_unselected, m_bedpts, params);