Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-02-04 22:59:35 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-02-04 22:59:35 +0300
commit54a4e9b697e28dba5340709f94374754f41b4884 (patch)
tree90f61ca65f92cf62ca696bc5788ff70623e94284 /source/blender/windowmanager/intern/wm_keymap.c
parent15bb6e63e8f7a04cbfc50d51466ddc19253bc52b (diff)
parent36d09d9029c970de6a6c4d926fc1189865b145c3 (diff)
Merge branch 'blender-v2.82-release'
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index f5e507fc317..68a12fa4272 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -1291,7 +1291,9 @@ int WM_modalkeymap_operator_items_to_string(wmOperatorType *ot,
char *result,
const int result_len)
{
- return WM_modalkeymap_items_to_string(ot->modalkeymap, propvalue, compact, result, result_len);
+ wmWindowManager *wm = G_MAIN->wm.first;
+ wmKeyMap *keymap = WM_keymap_active(wm, ot->modalkeymap);
+ return WM_modalkeymap_items_to_string(keymap, propvalue, compact, result, result_len);
}
char *WM_modalkeymap_operator_items_to_string_buf(wmOperatorType *ot,