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>2019-03-19 05:42:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-19 05:46:32 +0300
commit48ad55a03d658e73ae90166e752f5cf81292c8c1 (patch)
tree768f4b6ec43abb64c62586fd034194d17a477eea /source/blender/windowmanager
parentd731ee4960cf78f7b461be0c8f5ef27c098da265 (diff)
Cleanup: use enum for CTX_data_mode_enum
Exposes errors in some cases when compared against incompatible values.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap_utils.c b/source/blender/windowmanager/intern/wm_keymap_utils.c
index 6e70511ce63..35bd3a78142 100644
--- a/source/blender/windowmanager/intern/wm_keymap_utils.c
+++ b/source/blender/windowmanager/intern/wm_keymap_utils.c
@@ -258,6 +258,8 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
case OB_MODE_EDIT:
km = WM_keymap_find_all(C, "UV Sculpt", 0, 0);
break;
+ default:
+ break;
}
}
else if (STRPREFIX(opname, "MBALL_OT")) {
@@ -293,6 +295,8 @@ wmKeyMap *WM_keymap_guess_opname(const bContext *C, const char *opname)
case OB_MODE_TEXTURE_PAINT:
km = WM_keymap_find_all(C, "Image Paint", 0, 0);
break;
+ default:
+ break;
}
}
/* Image Editor */