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>2018-09-19 18:26:09 +0300
committerAntonioya <blendergit@gmail.com>2018-09-19 18:26:09 +0300
commite81f7f25acb0687a3d037fa7e39420bc4a6d23a8 (patch)
tree3054539aa39720b866dd78f77f41088efe960063 /source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
parent03bb7cd9ad438d5925b84bc6819d83dfe6cbd05e (diff)
GP: Verify weight data is correct before assigning
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
index d6a0721129d..cd46ed0f2d6 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsmooth.c
@@ -80,8 +80,7 @@ static void deformStroke(
if (mmd->factor > 0.0f) {
for (int r = 0; r < mmd->step; r++) {
for (int i = 0; i < gps->totpoints; i++) {
- // bGPDspoint *pt = &gps->points[i];
- MDeformVert *dvert = &gps->dvert[i];
+ MDeformVert *dvert = gps->dvert != NULL ? &gps->dvert[i] : NULL;
/* verify vertex group */
const float weight = get_modifier_point_weight(