FIX: remember the status of uniform scale

Change-Id: I60f36d6ac6e9be1be4b3e45bd3e7868dcd062e5d
(cherry picked from commit b1cde25a722a62720f7a877c985246078320149c)
This commit is contained in:
zhimin.zeng 2022-10-19 18:49:22 +08:00 committed by Lane.Wei
parent 10d8b6c609
commit 24778543e2

View file

@ -89,13 +89,6 @@ void GizmoObjectManipulation::update_settings_value(const Selection& selection)
const GLVolume* volume = selection.get_volume(*selection.get_volume_idxs().begin());
m_new_position = volume->get_instance_offset();
// Verify whether the instance rotation is multiples of 90 degrees, so that the scaling in world coordinates is possible.
if (m_world_coordinates && ! m_uniform_scale &&
! Geometry::is_rotation_ninety_degrees(volume->get_instance_rotation())) {
// Manipulating an instance in the world coordinate system, rotation is not multiples of ninety degrees, therefore enforce uniform scaling.
m_uniform_scale = true;
}
if (m_world_coordinates) {
m_new_rotate_label_string = L("Rotate");
m_new_rotation = volume->get_instance_rotation() * (180. / M_PI);