diff options
author | Antonioya <blendergit@gmail.com> | 2019-01-20 21:37:13 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-01-20 21:37:13 +0300 |
commit | 6e57534eaabef106a4c9c82f3d57e14a362dcceb (patch) | |
tree | 692281b44eabdca31552d0c63eed5a676befa6a8 /source/blender/editors/gpencil | |
parent | 69240a66e0a9914b8bfafb7a401c43cc757ad9ae (diff) |
Fix T60671: GP weight paint crash when smoothing weights
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_data.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index b2ceacf9398..26a05363888 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -1797,6 +1797,10 @@ static int gpencil_vertex_group_smooth_exec(bContext *C, wmOperator *op) CTX_DATA_BEGIN(C, bGPDstroke *, gps, editable_gpencil_strokes) { + if (gps->dvert == NULL) { + continue; + } + for (int s = 0; s < repeat; s++) { for (int i = 0; i < gps->totpoints; i++) { /* previous point */ |