mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 19:35:55 +08:00
Fix rotation of SVG object by slider
This commit is contained in:
parent
99fb3fa51e
commit
4e4c3a4331
@ -234,8 +234,8 @@ TransformationType get_transformation_type(const Selection &selection)
|
|||||||
{
|
{
|
||||||
assert(selection.is_single_full_object() || selection.is_single_volume());
|
assert(selection.is_single_full_object() || selection.is_single_volume());
|
||||||
return selection.is_single_volume() ?
|
return selection.is_single_volume() ?
|
||||||
TransformationType::Local_Relative_Joint :
|
TransformationType::Local_Relative_Independent :
|
||||||
TransformationType::Instance_Relative_Joint; // object
|
TransformationType::Instance_Relative_Independent; // object
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -345,8 +345,8 @@ void do_local_z_rotate(GLCanvas3D &canvas, double relative_angle)
|
|||||||
|
|
||||||
auto selection_rotate_fnc = [&selection, &relative_angle](){
|
auto selection_rotate_fnc = [&selection, &relative_angle](){
|
||||||
TransformationType transformation_type = selection.is_single_volume() ?
|
TransformationType transformation_type = selection.is_single_volume() ?
|
||||||
TransformationType::Local_Relative_Joint :
|
TransformationType::Local_Relative_Independent :
|
||||||
TransformationType::Instance_Relative_Joint;
|
TransformationType::Instance_Relative_Independent;
|
||||||
selection.rotate(Vec3d(0., 0., relative_angle), transformation_type);
|
selection.rotate(Vec3d(0., 0., relative_angle), transformation_type);
|
||||||
};
|
};
|
||||||
selection_transform(selection, selection_rotate_fnc);
|
selection_transform(selection, selection_rotate_fnc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user