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>2013-04-15 08:34:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-15 08:34:14 +0400
commitbe71c46b24179ae1de3cecbca6b546a61888a581 (patch)
tree3e990785c5099cf2759bd66f7aa07a700e4fee4a /source/blender/editors/sculpt_paint/paint_ops.c
parent8cca2fec82381144eebb6ab98fff17fc84452bce (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.c5
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)