diff options
author | Joshua Leung <aligorith@gmail.com> | 2013-01-26 09:34:06 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2013-01-26 09:34:06 +0400 |
commit | 44060daacfe45eb97a3a8344ec12bf84e7a63ce7 (patch) | |
tree | 056ab71de61d25588f42833701dca73423db90c7 /source/blender/editors | |
parent | 4f565d48fb9fc280f4794a536dae30dab0e6d65e (diff) |
Porting over hotkeys for adding rigidbody objects (from original branch)
* Ctrl-R = Add Active
* Ctrl-Shift-R = Add Passive
* Ctrl-Alt-R = Remove
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_ops.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_ops.c b/source/blender/editors/object/object_ops.c index 03b50c05071..5c65e543cc9 100644 --- a/source/blender/editors/object/object_ops.c +++ b/source/blender/editors/object/object_ops.c @@ -394,6 +394,12 @@ void ED_keymap_object(wmKeyConfig *keyconf) WM_keymap_verify_item(keymap, "GROUP_OT_objects_remove_all", GKEY, KM_PRESS, KM_SHIFT | KM_CTRL | KM_ALT, 0); WM_keymap_verify_item(keymap, "GROUP_OT_objects_add_active", GKEY, KM_PRESS, KM_SHIFT | KM_CTRL, 0); WM_keymap_verify_item(keymap, "GROUP_OT_objects_remove_active", GKEY, KM_PRESS, KM_SHIFT | KM_ALT, 0); + + kmi = WM_keymap_add_item(keymap, "RIGIDBODY_OT_objects_add", RKEY, KM_PRESS, KM_CTRL, 0); + RNA_enum_set(kmi->ptr, "type", 0); /* active */ + kmi = WM_keymap_add_item(keymap, "RIGIDBODY_OT_objects_add", RKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0); + RNA_enum_set(kmi->ptr, "type", 1); /* passive */ + kmi = WM_keymap_add_item(keymap, "RIGIDBODY_OT_objects_remove", RKEY, KM_PRESS, KM_CTRL | KM_ALT, 0); WM_keymap_add_menu(keymap, "VIEW3D_MT_object_specials", WKEY, KM_PRESS, 0, 0); |