diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-12 17:03:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-12 17:08:58 +0000 |
commit | 95d18c6a04b83943b0c3d095fedb681a2a0a2c0b (patch) | |
tree | 70ae37e306253488c50568e9e638c43fb517b3fe /logic | |
parent | 132350f8c5161a5daf4f202ac02cb5f4c0463915 (diff) |
logic/pipeline: fix duplicate d2r
Diffstat (limited to 'logic')
-rw-r--r-- | logic/pipeline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, {}); |