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

Bastien Montagne montagne29 at wanadoo.fr
Sun Mar 23 11:05:02 CET 2014


Sorry, forgot to say this should be included should we do an 'a' release.

On 23/03/2014 11:04, Bastien Montagne wrote:
> 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;
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



More information about the Bf-committers mailing list