From 065dddb890d3ec81643b9767397bdad72ae69ebd Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Thu, 15 Aug 2024 09:13:23 +0800 Subject: [PATCH] FIX:add wipe tower'position in move gizmo jira: STUDIO-7861 Change-Id: I8147717bc61ba06a7e1fba45532cdadc2ba1174e --- src/slic3r/GUI/Gizmos/GizmoObjectManipulation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GizmoObjectManipulation.cpp b/src/slic3r/GUI/Gizmos/GizmoObjectManipulation.cpp index 8ce03036a..b7674e695 100644 --- a/src/slic3r/GUI/Gizmos/GizmoObjectManipulation.cpp +++ b/src/slic3r/GUI/Gizmos/GizmoObjectManipulation.cpp @@ -162,6 +162,9 @@ void GizmoObjectManipulation::update_settings_value(const Selection& selection) m_new_size = selection.get_bounding_box_in_current_reference_system().first.size(); m_new_enabled = true; m_new_title_string = L("Group Operations"); + } else if (selection.is_wipe_tower()) { + const BoundingBoxf3 &box = selection.get_bounding_box(); + m_new_position = box.center(); } else { // No selection, reset the cache. @@ -756,7 +759,7 @@ void GizmoObjectManipulation::show_scale_tooltip_information(ImGuiWrapper *imgui Selection & selection = m_glcanvas.get_selection(); std::vector modes = {_u8L("World coordinates"), _u8L("Object coordinates")};//_u8L("Part coordinates") - if (selection.is_multiple_full_object()) { + if (selection.is_multiple_full_object() || selection.is_wipe_tower()) { modes.pop_back(); } size_t selection_idx = (int) m_coordinates_type;