FIX: fix issue STUDIO-452

wrong transformation when sub model is rotated

Change-Id: I40e7ad0f808dd4d3445f4556ae517f5284e1a65c
(cherry picked from commit 6d1328a4eb630a08a9c635f0efea2a057283329e)
This commit is contained in:
zhimin.zeng 2022-07-26 15:43:30 +08:00 committed by Lane.Wei
parent eaf71e4d2f
commit 3d80bb52dc
2 changed files with 25 additions and 1 deletions

View file

@ -98,7 +98,7 @@ void GizmoObjectManipulation::update_settings_value(const Selection& selection)
if (m_world_coordinates) {
m_new_rotate_label_string = L("Rotate");
m_new_rotation = Vec3d::Zero();
m_new_rotation = volume->get_instance_rotation() * (180. / M_PI);
m_new_size = selection.get_scaled_instance_bounding_box().size();
m_new_scale = m_new_size.cwiseProduct(selection.get_unscaled_instance_bounding_box().size().cwiseInverse()) * 100.;
}