Fix rotation of SVG object by slider

This commit is contained in:
Filip Sykala - NTB T15p 2023-09-21 13:47:26 +02:00
parent 99fb3fa51e
commit 4e4c3a4331
2 changed files with 4 additions and 4 deletions

View File

@ -234,8 +234,8 @@ TransformationType get_transformation_type(const Selection &selection)
{
assert(selection.is_single_full_object() || selection.is_single_volume());
return selection.is_single_volume() ?
TransformationType::Local_Relative_Joint :
TransformationType::Instance_Relative_Joint; // object
TransformationType::Local_Relative_Independent :
TransformationType::Instance_Relative_Independent; // object
}
} // namespace

View File

@ -345,8 +345,8 @@ void do_local_z_rotate(GLCanvas3D &canvas, double relative_angle)
auto selection_rotate_fnc = [&selection, &relative_angle](){
TransformationType transformation_type = selection.is_single_volume() ?
TransformationType::Local_Relative_Joint :
TransformationType::Instance_Relative_Joint;
TransformationType::Local_Relative_Independent :
TransformationType::Instance_Relative_Independent;
selection.rotate(Vec3d(0., 0., relative_angle), transformation_type);
};
selection_transform(selection, selection_rotate_fnc);