Fix T74696: Segment fault in Noise modifier using Vertex Groups

This commit is contained in:
Antonio Vazquez 2020-03-13 12:06:53 +01:00
parent 1ca582c651
commit 91ca3c3c0b
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #74696, Crash: Grease pencil noise modifier vertex group selection crashes Blender
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ static void deformStroke(GpencilModifierData *md,
for (int i = 0; i < gps->totpoints; i++) {
bGPDspoint *pt = &gps->points[i];
/* verify vertex group */
dvert = &gps->dvert[i];
dvert = gps->dvert != NULL ? &gps->dvert[i] : NULL;
float weight = get_modifier_point_weight(dvert, invert_group, def_nr);
if (weight < 0.0f) {
continue;