Fix T38166: Vertex slide C key doesn't work

This commit is contained in:
Campbell Barton 2014-01-15 18:27:39 +11:00
parent a86f43df9f
commit e07e8e31bb
Notes: blender-bot 2023-02-14 11:21:38 +01:00
Referenced by issue #38667, When using "Maya" Input Interface, pressing "E" does not initiate rotation in the UV/Image Editor
Referenced by issue #38668, When using Maya Input style, there is no way to snap Knife tool to midpoints
Referenced by issue #38332, Segmentation fault, when script active and render animation with motion blur
Referenced by issue #38266, Crash when rendering to Quicktime
Referenced by issue #38166, Vertex slide broken
1 changed files with 16 additions and 10 deletions

View File

@ -1358,23 +1358,29 @@ int transformEvent(TransInfo *t, const wmEvent *event)
break;
case CKEY:
if (event->alt) {
t->flag ^= T_PROP_CONNECTED;
sort_trans_data_dist(t);
calculatePropRatio(t);
t->redraw = TREDRAW_HARD;
handled = true;
if (!(t->options & CTX_NO_PET)) {
t->flag ^= T_PROP_CONNECTED;
sort_trans_data_dist(t);
calculatePropRatio(t);
t->redraw = TREDRAW_HARD;
handled = true;
}
}
else {
stopConstraint(t);
t->redraw |= TREDRAW_HARD;
handled = true;
if (!(t->flag & T_NO_CONSTRAINT)) {
stopConstraint(t);
t->redraw |= TREDRAW_HARD;
handled = true;
}
}
break;
case XKEY:
case YKEY:
case ZKEY:
transform_event_xyz_constraint(t, event->type, cmode);
handled = true;
if (!(t->flag & T_NO_CONSTRAINT)) {
transform_event_xyz_constraint(t, event->type, cmode);
handled = true;
}
break;
case OKEY:
if (t->flag & T_PROP_EDIT && event->shift) {