From 22a1109e30a927e2314c140dde41d2841894e8a2 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 23 Jan 2023 11:28:16 +0100 Subject: [PATCH] Fixed visibility of Object Manipulator reset buttons for single instance selection --- src/slic3r/GUI/GUI_ObjectManipulation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp index 41f4cf060..2e2a0d891 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp @@ -944,6 +944,9 @@ void ObjectManipulation::update_reset_buttons_visibility() if (selection.is_single_full_instance()) { #if ENABLE_WORLD_COORDINATE + const Geometry::Transformation& trafo = volume->get_instance_transformation(); + rotation = trafo.get_rotation_matrix(); + scale = trafo.get_scaling_factor_matrix(); const Selection::IndicesList& idxs = selection.get_volume_idxs(); for (unsigned int id : idxs) { const Geometry::Transformation world_trafo(selection.get_volume(id)->world_matrix());