mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 03:25:58 +08:00
Mirror do not change scale for svg object
This commit is contained in:
parent
0e33633fca
commit
99fb3fa51e
@ -1687,10 +1687,7 @@ void GLGizmoSVG::draw_size()
|
|||||||
selection.setup_cache();
|
selection.setup_cache();
|
||||||
|
|
||||||
auto selection_scale_fnc = [&selection, rel_scale = *new_relative_scale]() {
|
auto selection_scale_fnc = [&selection, rel_scale = *new_relative_scale]() {
|
||||||
TransformationType type = selection.is_single_volume() ?
|
selection.scale(rel_scale, get_transformation_type(selection));
|
||||||
TransformationType::Local_Relative_Independent:
|
|
||||||
TransformationType::Instance_Relative_Independent;
|
|
||||||
selection.scale(rel_scale, type);
|
|
||||||
};
|
};
|
||||||
selection_transform(selection, selection_scale_fnc, m_volume);
|
selection_transform(selection, selection_scale_fnc, m_volume);
|
||||||
|
|
||||||
@ -1854,10 +1851,7 @@ void GLGizmoSVG::draw_mirroring()
|
|||||||
selection.setup_cache();
|
selection.setup_cache();
|
||||||
|
|
||||||
auto selection_mirror_fnc = [&selection, &axis](){
|
auto selection_mirror_fnc = [&selection, &axis](){
|
||||||
TransformationType type = selection.is_single_volume()?
|
selection.mirror(axis, get_transformation_type(selection));
|
||||||
TransformationType::Local:
|
|
||||||
TransformationType::Instance;
|
|
||||||
selection.mirror(axis, type);
|
|
||||||
};
|
};
|
||||||
selection_transform(selection, selection_mirror_fnc, m_volume);
|
selection_transform(selection, selection_mirror_fnc, m_volume);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user