[bugfix] Curve tilt button in 3d toolbar showing wrong shortcut
authorLuca Bonavita <mindrones@gmail.com>
Mon, 10 Jan 2011 12:50:46 +0000 (12:50 +0000)
committerLuca Bonavita <mindrones@gmail.com>
Mon, 10 Jan 2011 12:50:46 +0000 (12:50 +0000)
Added Ctrl-T to Curves Tilt button in the toolbar (edit mode), currently was reporting Alt-S for tilt
(reported by Rickyx here http://www.kino3d.com/forum/viewtopic.php?f=21&t=8485&start=0)

Also added the label "Tilt" to the tilt transform in the Curve > Control points header submenu, currently was just "Transform"

release/scripts/ui/space_view3d.py
source/blender/editors/curve/curve_ops.c

index e60440d33eaf556cdb5146d48782e2dd10441c38..0b935b546431880ffcb8e4efe9cdc85b8434bcf6 100644 (file)
@@ -1681,7 +1681,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
         edit_object = context.edit_object
 
         if edit_object.type == 'CURVE':
-            layout.operator("transform.transform").mode = 'TILT'
+            layout.operator("transform.transform", text="Tilt").mode = 'TILT'
             layout.operator("curve.tilt_clear")
             layout.operator("curve.separate")
 
index 690aed2203bbc9bdbc95cd4a7c3ca590c7dd64db..0ee852a60594457f2a6d0b71c0aff7c653889b27 100644 (file)
@@ -220,6 +220,8 @@ void ED_keymap_curve(wmKeyConfig *keyconf)
 
        WM_keymap_add_item(keymap, "CURVE_OT_tilt_clear", TKEY, KM_PRESS, KM_ALT, 0);
        WM_keymap_add_item(keymap, "TRANSFORM_OT_tilt", TKEY, KM_PRESS, KM_CTRL, 0);
+       RNA_enum_set(WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", TKEY, KM_PRESS, KM_CTRL, 0)->ptr, "mode", TFM_TILT);
+
        RNA_enum_set(WM_keymap_add_item(keymap, "TRANSFORM_OT_transform", SKEY, KM_PRESS, KM_ALT, 0)->ptr, "mode", TFM_CURVE_SHRINKFATTEN);
 
        WM_keymap_add_item(keymap, "CURVE_OT_reveal", HKEY, KM_PRESS, KM_ALT, 0);