Fix application of rotation and distance from surface after style change

This commit is contained in:
Filip Sykala - NTB T15p 2024-01-11 10:32:45 +01:00
parent ff13a7c99b
commit b9039c84cb

View File

@ -2148,6 +2148,8 @@ void fix_transformation(const StyleManager::Style &from, const StyleManager::Sty
float f_angle = f_angle_opt.value_or(.0f); float f_angle = f_angle_opt.value_or(.0f);
float t_angle = t_angle_opt.value_or(.0f); float t_angle = t_angle_opt.value_or(.0f);
do_local_z_rotate(canvas.get_selection(), t_angle - f_angle); do_local_z_rotate(canvas.get_selection(), t_angle - f_angle);
std::string no_snapshot;
canvas.do_rotate(no_snapshot);
} }
// fix distance (Z move) when exists difference in styles // fix distance (Z move) when exists difference in styles
@ -2157,6 +2159,8 @@ void fix_transformation(const StyleManager::Style &from, const StyleManager::Sty
float f_move = f_move_opt.value_or(.0f); float f_move = f_move_opt.value_or(.0f);
float t_move = t_move_opt.value_or(.0f); float t_move = t_move_opt.value_or(.0f);
do_local_z_move(canvas.get_selection(), t_move - f_move); do_local_z_move(canvas.get_selection(), t_move - f_move);
std::string no_snapshot;
canvas.do_move(no_snapshot);
} }
} }
} // namesapce } // namesapce