From bbab2ecd43cea89131619d525770f86d4154f26a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 10 Jan 2014 19:43:31 +0100 Subject: Fix clang warning for (harmless) use of uninitialized variable. --- source/blender/editors/gpencil/gpencil_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/gpencil') diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index afc63ca6b19..f235ef412ba 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -969,7 +969,7 @@ static void gp_stroke_to_path(bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Curv } else if (add_start_point) { float p[3], next_p[3]; - float dt; + float dt = 0.0f; gp_strokepoint_convertcoords(C, gps, gps->points, p, subrect); if (gps->totpoints > 1) { @@ -1210,7 +1210,7 @@ static void gp_stroke_to_bezier(bContext *C, bGPDlayer *gpl, bGPDstroke *gps, Cu } else if (add_start_point) { float p[3]; - float dt; + float dt = 0.0f; if (gps->totpoints > 1) { interp_v3_v3v3(p, p3d_cur, p3d_next, -GAP_DFAC); -- cgit v1.2.3