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:
authorAntonioya <blendergit@gmail.com>2019-01-20 21:37:13 +0300
committerAntonioya <blendergit@gmail.com>2019-01-20 21:37:13 +0300
commit6e57534eaabef106a4c9c82f3d57e14a362dcceb (patch)
tree692281b44eabdca31552d0c63eed5a676befa6a8 /source/blender/editors/gpencil/gpencil_data.c
parent69240a66e0a9914b8bfafb7a401c43cc757ad9ae (diff)
Fix T60671: GP weight paint crash when smoothing weights
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c4
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 */