Fix #119387: Precision transform fails to activate
Regression in [0] caused precision fail to activate in the graph editor
and when pressing shift then control (#119395).
[0]: 060174cf14
This commit is contained in:
@@ -1311,15 +1311,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
|
||||
}
|
||||
else if (event->prev_val == KM_PRESS) {
|
||||
t->modifiers |= MOD_PRECISION;
|
||||
/* If we are already in a snapping mode, we don't want to add mouse precision,
|
||||
* it makes things like rotate snap really tedious. */
|
||||
if (t->modifiers & (MOD_SNAP | MOD_SNAP_INVERT)) {
|
||||
t->mouse.precision = false;
|
||||
}
|
||||
else {
|
||||
/* Shift is modifier for higher precision transform. */
|
||||
t->mouse.precision = true;
|
||||
}
|
||||
t->mouse.precision = true;
|
||||
|
||||
t->redraw |= TREDRAW_HARD;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user