diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-15 08:34:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-15 08:34:14 +0400 |
commit | be71c46b24179ae1de3cecbca6b546a61888a581 (patch) | |
tree | 3e990785c5099cf2759bd66f7aa07a700e4fee4a /source/blender/editors/sculpt_paint/paint_ops.c | |
parent | 8cca2fec82381144eebb6ab98fff17fc84452bce (diff) |
code cleanup: minor BMESH_TODO's, some were left in even though they were done/invalid.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 8c2bdc526d8..ae49fbcbc95 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -517,9 +517,9 @@ static int stencil_control_cancel(bContext *UNUSED(C), wmOperator *op) return OPERATOR_CANCELLED; } -static void stencil_control_calculate(StencilControlData *scd, const int *mval) +static void stencil_control_calculate(StencilControlData *scd, const int mval[2]) { - #define PIXEL_MARGIN 5 +#define PIXEL_MARGIN 5 float mdiff[2]; float mvalf[2] = {mval[0], mval[1]}; @@ -565,6 +565,7 @@ static void stencil_control_calculate(StencilControlData *scd, const int *mval) break; } } +#undef PIXEL_MARGIN } static int stencil_control_modal(bContext *C, wmOperator *op, const wmEvent *event) |