mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 17:55:56 +08:00
Fixed rotation of volumes while ALT key is pressed
This commit is contained in:
parent
59463cdb34
commit
48d88191e2
@ -804,7 +804,7 @@ void Selection::rotate(const Vec3d& rotation, TransformationType transformation_
|
|||||||
rotate_instance(v, i);
|
rotate_instance(v, i);
|
||||||
else if (is_single_volume() || is_single_modifier()) {
|
else if (is_single_volume() || is_single_modifier()) {
|
||||||
if (transformation_type.independent())
|
if (transformation_type.independent())
|
||||||
v.set_volume_rotation(v.get_volume_rotation() + rotation);
|
v.set_volume_rotation(m_cache.volumes_data[i].get_volume_rotation() + rotation);
|
||||||
else {
|
else {
|
||||||
const Transform3d m = Geometry::assemble_transform(Vec3d::Zero(), rotation);
|
const Transform3d m = Geometry::assemble_transform(Vec3d::Zero(), rotation);
|
||||||
const Vec3d new_rotation = Geometry::extract_euler_angles(m * m_cache.volumes_data[i].get_volume_rotation_matrix());
|
const Vec3d new_rotation = Geometry::extract_euler_angles(m * m_cache.volumes_data[i].get_volume_rotation_matrix());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user