From db8a66e49e26b9a2a32f2e739d6ba5f5792478e6 Mon Sep 17 00:00:00 2001 From: Stone Li Date: Tue, 1 Nov 2022 14:40:16 +0800 Subject: [PATCH] ENH: do not adjust camera when entering paint gizmo Change-Id: I1510a57af7c2a5cea96346681dac4865f533d335 --- src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp index 38c0f5ec52..b4a9fbee26 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp @@ -877,12 +877,12 @@ void GLGizmoPainterBase::on_set_state() on_opening(); const Selection& selection = m_parent.get_selection(); - Camera& camera = wxGetApp().plater()->get_camera(); - Vec3d rotate_target = selection.get_bounding_box().center(); - rotate_target(2) = 0.f; - Vec3d position = camera.get_position(); + //Camera& camera = wxGetApp().plater()->get_camera(); + //Vec3d rotate_target = selection.get_bounding_box().center(); + //rotate_target(2) = 0.f; + //Vec3d position = camera.get_position(); //camera.set_target(rotate_target); - camera.look_at(position, rotate_target, Vec3d::UnitZ()); + //camera.look_at(position, rotate_target, Vec3d::UnitZ()); } if (m_state == Off && m_old_state != Off) { // the gizmo was just turned Off // we are actually shutting down