[Bf-blender-cvs] [fcaa018] master: Fix T39347: Pressing backspace during empty number input for translation results in 0.5828 increments

Bastien Montagne noreply at git.blender.org
Sun Mar 23 11:04:00 CET 2014


Commit: fcaa018249226e72a21dc73f49af260f31c2e18b
Author: Bastien Montagne
Date:   Sun Mar 23 10:48:47 2014 +0100
https://developer.blender.org/rBfcaa018249226e72a21dc73f49af260f31c2e18b

Fix T39347: Pressing backspace during empty number input for translation results in 0.5828 increments

Interesting one, took me hours to understand the issue - a stupid typo checking the wrong value against the wrong flag (present since 2008!).

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

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

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

diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 56ef2bb..9cc65c2 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -137,7 +137,7 @@ static void postConstraintChecks(TransInfo *t, float vec[3], float pvec[3])
 
 	snapGridIncrement(t, vec);
 
-	if (t->num.flag & T_NULL_ONE) {
+	if (t->flag & T_NULL_ONE) {
 		if (!(t->con.mode & CON_AXIS0))
 			vec[0] = 1.0f;




More information about the Bf-blender-cvs mailing list