mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
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:
parent
847d369fbb
commit
09666e1498
1 changed files with 1 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue