Fix T74696: Segment fault in Noise modifier using Vertex Groups
This commit is contained in:
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
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue