Blender Git Commit Log

Git Commits -> Revision 11cfdfa

Revision 11cfdfa by Martin Poirier (master)
November 15, 2009, 19:25 (GMT)
=== Better support for user defined modal keymaps ===

Fixing/Missing RNA properties:
- "virtual" property for "ANY" modifier for keymapitem
- modal property for keymap
- Look up modal_items in usermaps too

Lazy init usermaps needs to init modal_items too.

New function to initialize a user keymap (fill in modal_item and poll pointers).

Operator modal keymaps now look up if there's a user defined keymap that overwrites it.

Full Event UI buttons now show "Any" when modifier is set to that (instead of listing all of them).

Note: Having the modifiers as boolean still doesn't express the full breath of values possible for them. There is commented code in this commit to represent them as enum, which would solve this, but make the keymap editor more cryptic.

Commit Details:

Full Hash: 11cfdfa2643bb380fc0596c737650643ce4a45be
SVN Revision: 24574
Parent Commit: 6ea6057
Lines Changed: +137, -19

5 Modified Paths:

/release/scripts/ui/space_userpref.py (+6, -1) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+69, -3) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+56, -11) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021