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:
2014-03-23 10:48:47 +01:00
parent 3bad243cb8
commit fcaa018249

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;