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 • committed by Philipp Oeser
parent 6514e4c418
commit b2e15cb19d

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