FIX: the wipe tower out of bounds when dragging

jira: STUDIO-10431
Change-Id: I749842cae7bcacfc555559d42a5dc108a13293bc
(cherry picked from commit 72816060abdd9848ced927c7d77ffc6c477f8a05)
This commit is contained in:
zhimin.zeng
2025-02-18 10:34:14 +08:00
committed by Noisyfox
parent 1308559993
commit 9d4628e3e6

View File

@@ -1189,7 +1189,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;