Fix/Workaround T40102: RMB on vertex & GKey, acts as double-G

This commit is contained in:
2014-05-12 12:54:29 +10:00
parent 47e905725e
commit d1526da787

View File

@@ -994,7 +994,11 @@ int transformEvent(TransInfo *t, const wmEvent *event)
}
else {
if (t->obedit && t->obedit->type == OB_MESH) {
if ((t->mode == TFM_TRANSLATION) && (t->spacetype == SPACE_VIEW3D)) {
if ((t->mode == TFM_TRANSLATION) &&
(t->spacetype == SPACE_VIEW3D) &&
/* prevents accidental select-tweak, gkey. see: T40102 */
(ISMOUSE(t->launch_event) == 0))
{
resetTransModal(t);
resetTransRestrictions(t);
restoreTransObjects(t);