Adding Shear transform to UV menu and Ctrl Alt Shift S hotkey (same as in 3D View)
authorDaniel Salazar <zanqdo@gmail.com>
Thu, 21 Jul 2011 21:34:08 +0000 (21:34 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Thu, 21 Jul 2011 21:34:08 +0000 (21:34 +0000)
release/scripts/startup/bl_ui/space_image.py
source/blender/editors/transform/transform_ops.c

index 722b46aba1178f13a2ad5c4a65c8688ebb952c80..fa5579ea2e0f5ad2ebb584c0562da3171453f7f7 100644 (file)
@@ -198,6 +198,10 @@ class IMAGE_MT_uvs_transform(bpy.types.Menu):
         layout.operator("transform.rotate")
         layout.operator("transform.resize")
 
+        layout.separator()
+
+        layout.operator("transform.shear")
+
 
 class IMAGE_MT_uvs_snap(bpy.types.Menu):
     bl_label = "Snap"
index 7bdf6c909d9775f5e281d25cd11d8e0b520199f3..2d0c1ac281803a50034e8647089f78b7f5be4588 100644 (file)
@@ -954,6 +954,8 @@ void transform_keymap_for_space(wmKeyConfig *keyconf, wmKeyMap *keymap, int spac
 
                        WM_keymap_add_item(keymap, OP_RESIZE, SKEY, KM_PRESS, 0, 0);
 
+                       WM_keymap_add_item(keymap, OP_SHEAR, SKEY, KM_PRESS, KM_ALT|KM_CTRL|KM_SHIFT, 0);
+
                        WM_keymap_add_item(keymap, "TRANSFORM_OT_mirror", MKEY, KM_PRESS, KM_CTRL, 0);
 
                        km = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, KM_SHIFT, 0);