Fix T93408: Snap performance regression at high poll rate

Caused by {rBfba9cd019f21f29bad1a6f3713370c5172dbc97f}.

The snap timer was accidentally modified and damaged.
This commit is contained in:
Germano Cavalcante 2021-12-22 16:11:05 -03:00
parent e2a9e7e803
commit 586e2face6
Notes: blender-bot 2023-02-14 09:34:18 +01:00
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
Referenced by issue #93408, Snap performance regression at high poll rate
1 changed files with 2 additions and 2 deletions

View File

@ -505,9 +505,9 @@ void applySnapping(TransInfo *t, float *vec)
if (t->tsnap.targetSnap) {
t->tsnap.targetSnap(t);
}
}
t->tsnap.last = current;
t->tsnap.last = current;
}
if (validSnap(t)) {
t->tsnap.applySnap(t, vec);