Blender Git Loki

Git Commits -> Revision 06ac655

Revision 06ac655 by Campbell Barton (master)
September 17, 2021, 06:52 (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: 06ac655b8dda53aa2122844d487ed68510211395
Parent Commit: 6dca61b
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021