Commit: fb94f4b884245dc4fa2961d775f7b1e5c8d16d22
Author: Bastien Montagne
Date:   Tue Aug 2 12:41:43 2016 +0200
Branches: master
https://developer.blender.org/rBfb94f4b884245dc4fa2961d775f7b1e5c8d16d22

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.

===================================================================

M       source/blender/editors/transform/transform.c

===================================================================

diff --git a/source/blender/editors/transform/transform.c 
b/source/blender/editors/transform/transform.c
index 8c90616..ef6cff1 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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to