Fix uninitialized vars

This commit is contained in:
Campbell Barton 2014-07-27 17:56:24 +10:00
parent 313ce5aa85
commit 5cab28290c
Notes: blender-bot 2023-02-14 10:17:39 +01:00
Referenced by issue #41221, 3d view rendered mode crashes on new scene
1 changed files with 3 additions and 2 deletions

View File

@ -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) {