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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-10 22:43:31 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-10 22:43:31 +0400
commitbbab2ecd43cea89131619d525770f86d4154f26a (patch)
tree0ffeb2e10d9b8956864048a12a0ae887721f18b0 /source/blender/editors/gpencil
parent79e040ba9581a2f386bbb467d43998e779accf78 (diff)
Fix clang warning for (harmless) use of uninitialized variable.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c4
1 files changed, 2 insertions, 2 deletions
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);