diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-18 04:06:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-18 04:15:12 +0300 |
commit | 0e78dacb4d30070fd5ac727a7566d54bd11de545 (patch) | |
tree | df94581399d1d92f1818504d122f67e80a19094e /source/blender/blenkernel/intern | |
parent | 1dda60792cc303ec81785d6a79926eed9a4da3d3 (diff) |
Cleanup: change enum usage so types are explicitly listed
Structure switch statements so new missing items cause warnings.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index 57e7fb0eb62..c9b3b3cc516 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -415,10 +415,12 @@ const char *BKE_paint_get_tool_prop_id_from_paintmode(ePaintMode mode) return "gpencil_sculpt_tool"; case PAINT_MODE_WEIGHT_GPENCIL: return "gpencil_weight_tool"; - default: - /* invalid paint mode */ - return NULL; + case PAINT_MODE_INVALID: + break; } + + /* Invalid paint mode. */ + return NULL; } Paint *BKE_paint_get_active(Scene *sce, ViewLayer *view_layer) |