FIX: fitst layer bbox was wrong for multiple plates

brim bounding box is now shifted w.r.t. plate origin, need to modify the
no-brim shift the same way.

Change-Id: Iefa7287e2848aadbfc4a468bca394ecec48a1e7c
This commit is contained in:
Arthur 2023-06-26 11:48:16 +08:00 committed by Lane.Wei
parent 4640cf9a1a
commit 0cad88309c
6 changed files with 21 additions and 22 deletions

View file

@ -6658,8 +6658,6 @@ PlateBBoxData Plater::priv::generate_first_layer_bbox()
{
auto bb_scaled = obj->get_first_layer_bbox(data.area, data.layer_height, data.name);
auto bb = unscaled(bb_scaled);
bb.min -= orig2d;
bb.max -= orig2d;
bbox_all.merge(bb);
data.area *= (SCALING_FACTOR * SCALING_FACTOR); // unscale area
data.id = obj->id().id;