FIX: the position of wipe tower is nor correct when multi-plate

Change-Id: Idabea67591102ee0f4595793e1ab027e805ace7a
This commit is contained in:
zhimin.zeng
2023-08-21 16:45:07 +08:00
committed by Lane.Wei
parent 7c89b4d225
commit 981a46920f
2 changed files with 13 additions and 4 deletions

View File

@@ -2641,8 +2641,8 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
x = plate_bbox_x_max_local_coord - wipe_tower_size(0) - margin;
need_update = true;
}
else if (x < plate_origin(0) + margin) {
x = plate_origin(0) + margin;
else if (x < margin) {
x = margin;
need_update = true;
}
if (need_update) {
@@ -2655,8 +2655,8 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
y = plate_bbox_y_max_local_coord - wipe_tower_size(1) - margin;
need_update = true;
}
else if (y < plate_origin(1) + margin) {
y = plate_origin(1) + margin;
else if (y < margin) {
y = margin;
need_update = true;
}
if (need_update) {