Fix transform glitch: Ctrl/Shift didn't refresh
This commit is contained in:
@@ -969,6 +969,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
|
|||||||
{
|
{
|
||||||
char cmode = constraintModeToChar(t);
|
char cmode = constraintModeToChar(t);
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
const int modifiers_prev = t->modifiers;
|
||||||
|
|
||||||
t->redraw |= handleMouseInput(t, &t->mouse, event);
|
t->redraw |= handleMouseInput(t, &t->mouse, event);
|
||||||
|
|
||||||
@@ -1495,6 +1496,13 @@ int transformEvent(TransInfo *t, const wmEvent *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if we change snap options, get the unsnapped values back */
|
||||||
|
if ((t->modifiers & (MOD_SNAP | MOD_SNAP_INVERT)) !=
|
||||||
|
(modifiers_prev & (MOD_SNAP | MOD_SNAP_INVERT)))
|
||||||
|
{
|
||||||
|
applyMouseInput(t, &t->mouse, t->mval, t->values);
|
||||||
|
}
|
||||||
|
|
||||||
/* Per transform event, if present */
|
/* Per transform event, if present */
|
||||||
if (t->handleEvent &&
|
if (t->handleEvent &&
|
||||||
(!handled ||
|
(!handled ||
|
||||||
|
|||||||
Reference in New Issue
Block a user