diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 05:30:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-31 05:30:45 +0300 |
commit | ea575744b8c9badb7f9b56fba625adb059ff3b5c (patch) | |
tree | 075f8369f2ea5841113cb444e24d0b41124dd21a /source/blender | |
parent | 63a5f723d6bd820c8c4d6e1d74d983595e00829e (diff) |
Fix assigning shortcuts that include array indices
Assigning a shortcut to bone layers for example,
raised a Python exception when used.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_context_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_context_menu.c b/source/blender/editors/interface/interface_context_menu.c index e89b8dc7bd7..bb9e813ea50 100644 --- a/source/blender/editors/interface/interface_context_menu.c +++ b/source/blender/editors/interface/interface_context_menu.c @@ -71,7 +71,7 @@ static IDProperty *shortcut_property_from_rna(bContext *C, uiBut *but) /* If this returns null, we won't be able to bind shortcuts to these RNA properties. * Support can be added at #wm_context_member_from_ptr. */ char *final_data_path = WM_context_path_resolve_property_full( - C, &but->rnapoin, but->rnaprop, -1); + C, &but->rnapoin, but->rnaprop, but->rnaindex); if (final_data_path == NULL) { return NULL; } |