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>2018-11-14 03:20:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-14 03:20:08 +0300
commitb97a2c3688ad29b051898ff2be5f9b9e98bebdba (patch)
treede011963a87fa4977bbae61f1143f44603569d14 /source/blender/editors/sculpt_paint/paint_curve.c
parentc1d29ea7835c0f2ebd20531dfe3996c6bbce6b58 (diff)
Cleanup: naming for paint modes
- Rename ePaint* -> PAINT_MODE_*. - Use PAINT_OVERLAY_ prefix for eOverlayControlFlags.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_curve.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_curve.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c
index 1bbc1a7a555..55912733dc2 100644
--- a/source/blender/editors/sculpt_paint/paint_curve.c
+++ b/source/blender/editors/sculpt_paint/paint_curve.c
@@ -658,17 +658,17 @@ static int paintcurve_draw_exec(bContext *C, wmOperator *UNUSED(op))
const char *name;
switch (mode) {
- case ePaintTexture2D:
- case ePaintTexture3D:
+ case PAINT_MODE_TEXTURE_2D:
+ case PAINT_MODE_TEXTURE_3D:
name = "PAINT_OT_image_paint";
break;
- case ePaintWeight:
+ case PAINT_MODE_WEIGHT:
name = "PAINT_OT_weight_paint";
break;
- case ePaintVertex:
+ case PAINT_MODE_VERTEX:
name = "PAINT_OT_vertex_paint";
break;
- case ePaintSculpt:
+ case PAINT_MODE_SCULPT:
name = "SCULPT_OT_brush_stroke";
break;
default:
@@ -698,7 +698,7 @@ static int paintcurve_cursor_invoke(bContext *C, wmOperator *UNUSED(op), const w
ePaintMode mode = BKE_paintmode_get_active_from_context(C);
switch (mode) {
- case ePaintTexture2D:
+ case PAINT_MODE_TEXTURE_2D:
{
ARegion *ar = CTX_wm_region(C);
SpaceImage *sima = CTX_wm_space_image(C);