[Bf-blender-cvs] [227fb30] master: Fix T46905: UV/Image Editor - Can't add shortcut to Mirror / X Axis menu item

Bastien Montagne noreply at git.blender.org
Wed Dec 2 14:20:25 CET 2015


Commit: 227fb30a184ca383c7c1c0f96107adfe839b5d56
Author: Bastien Montagne
Date:   Wed Dec 2 14:18:59 2015 +0100
Branches: master
https://developer.blender.org/rB227fb30a184ca383c7c1c0f96107adfe839b5d56

Fix T46905: UV/Image Editor - Can't add shortcut to Mirror / X Axis menu item

Yet another Space/NoSpace mismatch when searching keymaps in WM_keymap_guess_opname().

Spent again some time trying to chase those, was the only one I found...

===================================================================

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 f378a4c..fe32fd6 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -1864,7 +1864,7 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
 				km = WM_keymap_find_all(C, "NLA Editor", sl->spacetype, 0);
 				break;
 			case SPACE_IMAGE:
-				km = WM_keymap_find_all(C, "UV Editor", sl->spacetype, 0);
+				km = WM_keymap_find_all(C, "UV Editor", 0, 0);
 				break;
 			case SPACE_NODE:
 				km = WM_keymap_find_all(C, "Node Editor", sl->spacetype, 0);




More information about the Bf-blender-cvs mailing list