[Bf-blender-cvs] [dfaf264] master: Fix transform glitch: Ctrl/Shift didn't refresh
Campbell Barton
noreply at git.blender.org
Tue Jan 20 13:18:38 CET 2015
Commit: dfaf26412d8bbe12dbb7bcf5923af662791a721c
Author: Campbell Barton
Date: Tue Jan 20 23:14:06 2015 +1100
Branches: master
https://developer.blender.org/rBdfaf26412d8bbe12dbb7bcf5923af662791a721c
Fix transform glitch: Ctrl/Shift didn't refresh
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index cf50b8c..2679cf1 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -969,6 +969,7 @@ int transformEvent(TransInfo *t, const wmEvent *event)
{
char cmode = constraintModeToChar(t);
bool handled = false;
+ const int modifiers_prev = t->modifiers;
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 */
if (t->handleEvent &&
(!handled ||
More information about the Bf-blender-cvs
mailing list