FIX: the wipe tower out of bounds when dragging
jira: STUDIO-10431 Change-Id: I749842cae7bcacfc555559d42a5dc108a13293bc
This commit is contained in:
parent
d4a39655b0
commit
72816060ab
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue