ENH: rotate: refine the behavior of assemble rotation

use the logic of rotate_local_with_target

Change-Id: I181372b6784c5d025bc3748377f6130f15a80d85
This commit is contained in:
lane.wei 2022-08-24 17:38:22 +08:00 committed by Lane.Wei
parent ffb1f706d8
commit 0898817053

View file

@ -3333,8 +3333,8 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
else
rotate_target = volumes_bounding_box().center();
//BBS do not limit rotate in assemble view
//camera.rotate_local_with_target(Vec3d(rot.y(), rot.x(), 0.), rotate_target);
camera.rotate_on_sphere_with_target(rot.x(), rot.y(), true, rotate_target);
camera.rotate_local_with_target(Vec3d(rot.y(), rot.x(), 0.), rotate_target);
//camera.rotate_on_sphere_with_target(rot.x(), rot.y(), false, rotate_target);
}
else {
#ifdef SUPPORT_FEEE_CAMERA