Blender Git Commit Log

Git Commits -> Revision f91718b

Revision f91718b by Campbell Barton (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
WM: expose the "any" state of KeyMapItem modifiers

Change KeyMapItem.alt/ctrl/shift/oskey to integer types,
where -1 is used to ignore the modifier when matching key-map items.

It was only possible to set all modifiers to -1 at once from RNA
using the 'any' property.
Afterwards individual modifiers could be set back to true/false.
Although these key-map items could not be exported/imported.

Exposing the values directly avoids the need for cumbersome workarounds.

Commit Details:

Full Hash: f91718bdd99e4b0ddae360612621157345ee556a
Parent Commit: c0fb68a
Committed By: Pablo Vazquez
Lines Changed: +132, -90

7 Modified Paths:

/release/scripts/modules/bl_keymap_utils/io.py (+5, -10) (Diff)
/release/scripts/modules/rna_keymap_ui.py (+6, -4) (Diff)
/source/blender/editors/interface/interface_layout.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+33, -10) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+64, -58) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+14, -4) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021