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

This commit is contained in:
Campbell Barton 2014-05-12 12:54:29 +10:00
parent 47e905725e
commit d1526da787
Notes: blender-bot 2024-05-08 11:36:44 +02:00
Referenced by commit 74f77a2956, This reverts commit d1526da787.
Referenced by issue #40102, Right-Click on vertex and inmediatly "G" key, acts as double-G.
1 changed files with 5 additions and 1 deletions

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);