diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-28 12:47:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-28 13:49:36 +0300 |
commit | 00230608936e4bf2143ac4caaff3fdcbe77bda3e (patch) | |
tree | 4e692fb780be5dfe351091c2e00855653b2de624 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | 12622ce2f7fc8322c4d1ff020f655b138ef1e293 (diff) |
Cleanup: compiler warnings.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index aa163e02cfe..4bd8c28a85c 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -753,7 +753,7 @@ static short gp_stroke_addpoint( if (gp_stroke_added_check(p)) { bGPDstroke *gps = p->gpf->strokes.last; bGPDspoint *pts; - MDeformVert *dvert; + MDeformVert *dvert = NULL; /* first time point is adding to temporary buffer -- need to allocate new point in stroke */ if (gpd->runtime.sbuffer_size == 0) { @@ -792,7 +792,7 @@ static short gp_stroke_addpoint( pts->uv_fac = pt->uv_fac; pts->uv_rot = pt->uv_rot; - if (gps->dvert != NULL) { + if (dvert != NULL) { dvert->totweight = 0; dvert->dw = NULL; } |