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>2014-07-27 11:56:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-27 12:15:18 +0400
commit5cab28290c598b7b819951479cbce0f72157708e (patch)
tree1f7ad11161c45f3acd3c7c503c072575442d947c
parent313ce5aa8507f8eb4a423c459e7e7eea63a0926c (diff)
Fix uninitialized vars
-rw-r--r--source/blender/editors/sculpt_paint/paint_curve.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c
index 5c11ae8ecb6..217c88c87ea 100644
--- a/source/blender/editors/sculpt_paint/paint_curve.c
+++ b/source/blender/editors/sculpt_paint/paint_curve.c
@@ -97,7 +97,7 @@ static void paintcurve_undo_restore(bContext *C, ListBase *lb)
{
Paint *p = BKE_paint_get_active_from_context(C);
UndoCurve *uc;
- PaintCurve *pc;
+ PaintCurve *pc = NULL;
if (p->brush) {
pc = p->brush->paint_curve;
@@ -593,9 +593,10 @@ static int paintcurve_slide_invoke(bContext *C, wmOperator *op, const wmEvent *e
return OPERATOR_PASS_THROUGH;
if (do_select) {
- pcp = paintcurve_point_get_closest(pc, loc_fl, align, PAINT_CURVE_SELECT_THRESHOLD, &select);
+ pcp = paintcurve_point_get_closest(pc, loc_fl, align, PAINT_CURVE_SELECT_THRESHOLD, &select);
}
else {
+ pcp = NULL;
/* just find first selected point */
for (i = 0; i < pc->tot_points; i++) {
if (pc->points[i].bez.f1 || pc->points[i].bez.f2 || pc->points[i].bez.f3) {