Page MenuHome

WM Modal Keymaps: Add accessors to modal event values.
ClosedPublic

Authored by Bastien Montagne (mont29) on Aug 8 2022, 6:57 PM.

Details

Summary

It is currently impossible to access modal keymaps' event values (from
propvalue enum) from python code (for API introspection).

This is needed for i18n messages extraction (see D15607).


NOTE: those changes will be committed in two different commits (one per file).

This is an alternative fix to the solution proposed in D15607.

Diff Detail

Repository
rB Blender
Branch
tmp (branched from master)
Build Status
Buildable 23297
Build 23297: arc lint + arc unit

Event Timeline

Bastien Montagne (mont29) requested review of this revision.Aug 8 2022, 6:57 PM
Bastien Montagne (mont29) created this revision.
This revision is now accepted and ready to land.Aug 9 2022, 8:56 AM

Only minor comment, LGTM.

source/blender/makesrna/intern/rna_wm.c
877–879

Use RNA_enum_items_count

Bastien Montagne (mont29) marked an inline comment as done.Aug 9 2022, 11:48 AM