From fb94f4b884245dc4fa2961d775f7b1e5c8d16d22 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 2 Aug 2016 12:41:43 +0200 Subject: Fix T48998: 'header input' of rotation transform was clamped in [-PI, PI[ range. Can't see any reason for this behavior (inherited from 2.4x code), so for now just removing it. --- source/blender/editors/transform/transform.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 8c906160a00..ef6cff19181 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -3997,10 +3997,8 @@ static void applyRotation(TransInfo *t, const int UNUSED(mval[2])) applySnapping(t, &final); - if (applyNumInput(&t->num, &final)) { - /* Clamp between -PI and PI */ - final = angle_wrap_rad(final); - } + /* Used to clamp final result in [-PI, PI[ range, no idea why, inheritance from 2.4x area, see T48998. */ + applyNumInput(&t->num, &final); t->values[0] = final; -- cgit v1.2.3