mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
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:
@@ -1189,7 +1189,8 @@ void Selection::translate(const Vec3d &displacement, TransformationType transfor
|
|||||||
} else {
|
} else {
|
||||||
if (v.is_wipe_tower) {//in world cs
|
if (v.is_wipe_tower) {//in world cs
|
||||||
int plate_idx = v.object_idx() - 1000;
|
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_size = v.bounding_box().size();
|
||||||
Vec3d tower_origin = m_cache.volumes_data[i].get_volume_position();
|
Vec3d tower_origin = m_cache.volumes_data[i].get_volume_position();
|
||||||
Vec3d actual_displacement = displacement;
|
Vec3d actual_displacement = displacement;
|
||||||
|
|||||||
Reference in New Issue
Block a user