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:
authorCampbell Barton <ideasman42@gmail.com>2014-01-23 12:00:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-23 12:05:56 +0400
commit1713db203583a1b93143b14dfa77eb447697deac (patch)
tree9b9a1fa0662cf593b5cc40225fdcc48518a991e3 /source/blender/windowmanager/intern/wm_operators.c
parentb64f897606ecd1cc14ccbef9f54a054452e39a63 (diff)
Fix T38042: Keymap crash after reloading operators
After some investigation with mont29, seems like the best way to ensure keymaps point to valid operators is using WM_keyconfig_update().
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 3638403660d..64adb6d0fab 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -477,6 +477,8 @@ void WM_operatortype_remove_ptr(wmOperatorType *ot)
BLI_ghash_remove(global_ops_hash, (void *)ot->idname, NULL, NULL);
+ WM_keyconfig_update_operatortype();
+
MEM_freeN(ot);
}