diff options
author | Antonioya <blendergit@gmail.com> | 2019-01-21 13:02:24 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-01-21 13:03:09 +0300 |
commit | f8d040cb7020e20d0a5ed0f5d69e0f2df74bedeb (patch) | |
tree | 4edeb0ad0302e1bd1ac45f06be6f05e96308008c /source | |
parent | 42ba2942355c9320d3173f4ea3e374a63f0f8e3a (diff) |
T60701: GP using cutter tool on stroke with vertex group crashes blender
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index ac3c080e019..e81aac3686f 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -1894,7 +1894,7 @@ void gp_stroke_delete_tagged_points(bGPDframe *gpf, bGPDstroke *gps, bGPDstroke memcpy(new_stroke->points, gps->points + island->start_idx, sizeof(bGPDspoint) * new_stroke->totpoints); /* Copy over vertex weight data (if available) */ - if (new_stroke->dvert != NULL) { + if (gps->dvert != NULL) { /* Copy over the relevant vertex-weight points */ new_stroke->dvert = MEM_callocN(sizeof(MDeformVert) * new_stroke->totpoints, "gp delete stroke fragment weight"); memcpy(new_stroke->dvert, gps->dvert + island->start_idx, sizeof(MDeformVert) * new_stroke->totpoints); |