From 91db979c8c5fab33d5c01df67121246c7fd20a41 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 30 Mar 2023 09:09:50 +0200 Subject: [PATCH] Show the reset button for skew only when the world matrix contains skew (so that the skewed object is visible in the 3D scene view) --- src/slic3r/GUI/GUI_ObjectManipulation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp index dc4b17707..7c8df40b3 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp @@ -433,7 +433,7 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) : m_main_grid_sizer->Add(editors_grid_sizer, 1, wxEXPAND); - m_skew_label = new wxStaticText(parent, wxID_ANY, _L("Skew")); + m_skew_label = new wxStaticText(parent, wxID_ANY, _L("Skew [World]")); m_main_grid_sizer->Add(m_skew_label, 1, wxEXPAND); m_reset_skew_button = new ScalableButton(parent, wxID_ANY, ScalableBitmap(parent, "undo")); @@ -780,7 +780,7 @@ void ObjectManipulation::update_reset_buttons_visibility() show_rotation = trafo_svd.rotation; show_scale = trafo_svd.scale; show_mirror = trafo_svd.mirror; - show_skew = trafo_svd.skew; + show_skew = Geometry::TransformationSVD(volume->world_matrix()).skew; } wxGetApp().CallAfter([this, show_drop_to_bed, show_rotation, show_scale, show_mirror, show_skew] {