diff options
Diffstat (limited to 'source/blender/gpencil_modifiers/intern')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c index 7a9a3efbd95..e25908d2d01 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c @@ -138,13 +138,13 @@ static void deformStroke( continue; } - /* last point is special */ - if (i == gps->totpoints) { + /* first point is special */ + if (i == 0) { if (gps->dvert) { - dvert = &gps->dvert[i - 2]; + dvert = &gps->dvert[0]; } - pt0 = &gps->points[i - 2]; - pt1 = &gps->points[i - 1]; + pt0 = &gps->points[1]; + pt1 = &gps->points[0]; } else { int prev_idx = i - 1; |