[Bf-blender-cvs] [fb94f4b] master: Fix T48998: 'header input' of rotation transform was clamped in [-PI, PI[ range.

Bastien Montagne noreply at git.blender.org
Tue Aug 2 12:44:17 CEST 2016


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;




More information about the Bf-blender-cvs mailing list