2.5 / Nodes / Transformations
[blender.git] / source / blender / editors / transform / transform_ops.c
index 35d1f45bf33cdcc399cb2aedab527d23836386b1..e15fd3780ea90266dda442c4bce85851e91e03e9 100644 (file)
@@ -201,9 +201,18 @@ void transform_keymap_for_space(struct wmWindowManager *wm, struct ListBase *key
                        
                        km= WM_keymap_add_item(keymap, "TFM_OT_transform", TKEY, KM_PRESS, 0, 0);
                        RNA_int_set(km->ptr, "mode", TFM_TIME_SLIDE);
+                       break;
+               
                case SPACE_NODE:
                        km= WM_keymap_add_item(keymap, "TFM_OT_transform", GKEY, KM_PRESS, 0, 0);
-                       RNA_int_set(km->ptr, "mode", TFM_NODE_TRANSLATE);
+                       RNA_int_set(km->ptr, "mode", TFM_TRANSLATION);
+                       
+                       km = WM_keymap_add_item(keymap, "TFM_OT_transform", RKEY, KM_PRESS, 0, 0);
+                       RNA_int_set(km->ptr, "mode", TFM_ROTATION);
+                       
+                       km = WM_keymap_add_item(keymap, "TFM_OT_transform", SKEY, KM_PRESS, 0, 0);
+                       RNA_int_set(km->ptr, "mode", TFM_RESIZE);
+                       break;
                default:
                        break;
        }