From 95d18c6a04b83943b0c3d095fedb681a2a0a2c0b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Oct 2018 17:03:24 +0200 Subject: logic/pipeline: fix duplicate d2r --- logic/pipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index c701a815..9c50b100 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -330,7 +330,7 @@ Pose pipeline::clamp_value(Pose value) const Pose pipeline::apply_center(Pose value) const { euler_t T = euler_t(value) - scaled_state.t_center; - euler_t R = d2r * scale_c * rmat_to_euler(scaled_state.rotation * scaled_state.inv_rot_center); + euler_t R = scale_c * rmat_to_euler(scaled_state.rotation * scaled_state.inv_rot_center); // XXX check these lines, it's been here forever T = rel.rotate(euler_to_rmat(R), T, {}); -- cgit v1.2.3