From 089881705360338fbee36cb638527433e74c8713 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Wed, 24 Aug 2022 17:38:22 +0800 Subject: [PATCH] ENH: rotate: refine the behavior of assemble rotation use the logic of rotate_local_with_target Change-Id: I181372b6784c5d025bc3748377f6130f15a80d85 --- src/slic3r/GUI/GLCanvas3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index c6db973d66..e1f13aee50 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -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