FIX: the wipe tower out of bounds when dragging

jira: STUDIO-10431
Change-Id: I749842cae7bcacfc555559d42a5dc108a13293bc
This commit is contained in:
zhimin.zeng 2025-02-18 10:34:14 +08:00 committed by lane.wei
parent d4a39655b0
commit 72816060ab
1 changed files with 2 additions and 1 deletions

View File

@ -1194,7 +1194,8 @@ void Selection::translate(const Vec3d &displacement, TransformationType transfor
} else {
if (v.is_wipe_tower) {//in world cs
int plate_idx = v.object_idx() - 1000;
BoundingBoxf3 plate_bbox = wxGetApp().plater()->get_partplate_list().get_plate(plate_idx)->get_bounding_box();
BoundingBoxf3 plate_bbox = wxGetApp().plater()->get_partplate_list().get_plate(plate_idx)->get_build_volume(true);
Vec3d tower_size = v.bounding_box().size();
Vec3d tower_origin = m_cache.volumes_data[i].get_volume_position();
Vec3d actual_displacement = displacement;