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