mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
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:
parent
eaf71e4d2f
commit
3d80bb52dc
2 changed files with 25 additions and 1 deletions
|
@ -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.;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue