fix for G,G causing vertex slide in UV/Image window, also comment unused defines...
[blender.git] / source / blender / editors / transform / transform.c
index 00bdf0697699f727d13daab98a3349d873fea4a5..d29326db6b0b5b1f63c013359a9c35953d9b8318 100644 (file)
@@ -896,7 +896,7 @@ int transformEvent(TransInfo *t, wmEvent *event)
                                }
                                else {
                                        if (t->obedit && t->obedit->type == OB_MESH) {
-                                               if (t->mode == TFM_TRANSLATION) {
+                                               if ((t->mode == TFM_TRANSLATION) && (t->spacetype == SPACE_VIEW3D)) {
                                                        resetTransRestrictions(t);
                                                        restoreTransObjects(t);