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>2015-11-23 07:44:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-23 09:40:50 +0300
commit48b1656a6cce6fd7606a671eea9d0d17b67d7445 (patch)
treed95ed94cf1d1934c01de44364db7d53ca2262ff3 /source/blender/editors/sculpt_paint/paint_curve.c
parent6e4cb463c44ab57331cda7ded645b4faa573bbb3 (diff)
Cleanup: shadowing (editors)
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_curve.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_curve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c
index 2f27db835f5..9704db9d035 100644
--- a/source/blender/editors/sculpt_paint/paint_curve.c
+++ b/source/blender/editors/sculpt_paint/paint_curve.c
@@ -459,7 +459,6 @@ static bool paintcurve_point_select(bContext *C, wmOperator *op, const int loc[2
Paint *p = BKE_paint_get_active_from_context(C);
Brush *br = p->brush;
PaintCurve *pc;
- PaintCurvePoint *pcp;
int i;
const float loc_fl[2] = {UNPACK2(loc)};
@@ -470,12 +469,13 @@ static bool paintcurve_point_select(bContext *C, wmOperator *op, const int loc[2
paintcurve_undo_begin(C, op, pc);
- pcp = pc->points;
-
if (toggle) {
+ PaintCurvePoint *pcp;
char select = 0;
bool selected = false;
+ pcp = pc->points;
+
for (i = 0; i < pc->tot_points; i++) {
if (pcp[i].bez.f1 || pcp[i].bez.f2 || pcp[i].bez.f3) {
selected = true;