Blender Git Loki
Git Commits -> Revision d48f4b60
Revision d48f4b60 by Brecht Van Lommel (master) December 15, 2008, 13:10 (GMT) |
2.5: added support for setting RNA properties in keymap item, which will then be set when the operator is called, example: kmi= WM_keymap_add_item(keymap, "ED_SCR_OT_region_split", SKEY, KM_PRESS, 0, 0); RNA_enum_set(kmi->ptr, "dir", 'h'); kmi= WM_keymap_add_item(keymap, "ED_SCR_OT_region_split", SKEY, KM_PRESS, KM_SHIFT, 0); RNA_enum_set(kmi->ptr, "dir", 'v'); There is a hack I had to do here, since properties are defined as member of wmOperator, will try to fix later, committing now so it can be used already. |
Commit Details:
Full Hash: d48f4b6012ccfc1a1da6a1a002d7c86cacbd98aa
SVN Revision: 17873
Parent Commit: b4aef16
Lines Changed: +61, -45
7 Modified Paths:
/source/blender/editors/screen/screen_ops.c (+5, -9) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+0, -8) (Diff)
/source/blender/windowmanager/intern/wm.c (+11, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+11, -7) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+24, -9) (Diff)
/source/blender/windowmanager/WM_api.h (+0, -2) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+0, -8) (Diff)
/source/blender/windowmanager/intern/wm.c (+11, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+11, -7) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+24, -9) (Diff)
/source/blender/windowmanager/WM_api.h (+0, -2) (Diff)