[Bf-blender-cvs] [2564f2c1b3f] master: Fix T64604: Changing keymap doesn't tag preferences as dirty
Campbell Barton
noreply at git.blender.org
Wed May 15 02:47:44 CEST 2019
Commit: 2564f2c1b3f9a007218522276c57ec3914302da0
Author: Campbell Barton
Date: Wed May 15 10:44:43 2019 +1000
Branches: master
https://developer.blender.org/rB2564f2c1b3f9a007218522276c57ec3914302da0
Fix T64604: Changing keymap doesn't tag preferences as dirty
===================================================================
M source/blender/windowmanager/intern/wm_keymap.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index c41ca67f795..4bcbce028b1 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -310,6 +310,7 @@ bool WM_keyconfig_remove(wmWindowManager *wm, wmKeyConfig *keyconf)
if (BLI_findindex(&wm->keyconfigs, keyconf) != -1) {
if (STREQLEN(U.keyconfigstr, keyconf->idname, sizeof(U.keyconfigstr))) {
BLI_strncpy(U.keyconfigstr, wm->defaultconf->idname, sizeof(U.keyconfigstr));
+ U.runtime.is_dirty = true;
WM_keyconfig_update_tag(NULL, NULL);
}
@@ -360,6 +361,9 @@ void WM_keyconfig_set_active(wmWindowManager *wm, const char *idname)
WM_keyconfig_update(wm);
BLI_strncpy(U.keyconfigstr, idname, sizeof(U.keyconfigstr));
+ if (wm->initialized & WM_KEYCONFIG_IS_INITIALIZED) {
+ U.runtime.is_dirty = true;
+ }
WM_keyconfig_update_tag(NULL, NULL);
WM_keyconfig_update(wm);
More information about the Bf-blender-cvs
mailing list