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!).
This commit is contained in:
Bastien Montagne 2014-03-23 10:48:47 +01:00
parent 3bad243cb8
commit fcaa018249
Notes: blender-bot 2023-02-14 10:55:42 +01:00
Referenced by issue #39347, Pressing backspace during empty number input for translation results in 0.5828 increments
1 changed files with 1 additions and 1 deletions

View File

@ -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;