[Bf-blender-cvs] [efc9cb67b7e] soc-2021-curves: Changed data initialization to fix warning

dilithjay noreply at git.blender.org
Sun Jun 20 18:13:39 CEST 2021


Commit: efc9cb67b7e78d7b01f04327b3662be4a9cb3055
Author: dilithjay
Date:   Sun Jun 20 21:20:05 2021 +0530
Branches: soc-2021-curves
https://developer.blender.org/rBefc9cb67b7e78d7b01f04327b3662be4a9cb3055

Changed data initialization to fix warning

===================================================================

M	source/blender/editors/curve/editcurve_pen.c

===================================================================

diff --git a/source/blender/editors/curve/editcurve_pen.c b/source/blender/editors/curve/editcurve_pen.c
index fb0fb5550af..8eae7818c0b 100644
--- a/source/blender/editors/curve/editcurve_pen.c
+++ b/source/blender/editors/curve/editcurve_pen.c
@@ -865,7 +865,7 @@ static int curve_pen_modal(bContext *C, wmOperator *op, const wmEvent *event)
             float prev_loc[3], cut_loc[3], next_loc[3];
             /* Mouse location as floats. */
             float mval[2];
-          } data = {NULL};
+          } data = {.bezt_index = 0, .min_dist = 10000, .has_prev = false, .has_next = false};
 
           data.mval[0] = event->mval[0];
           data.mval[1] = event->mval[1];



More information about the Bf-blender-cvs mailing list