diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c index 94f83f10fb5..8b3752c8028 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c @@ -170,7 +170,12 @@ static void deformStroke( } /* initial vector (p0 -> p1) */ - sub_v3_v3v3(vec1, &pt1->x, &pt0->x); + if (i == 0) { + sub_v3_v3v3(vec1, &pt0->x, &pt1->x); + } + else { + sub_v3_v3v3(vec1, &pt1->x, &pt0->x); + } vran = len_v3(vec1); /* vector orthogonal to normal */ cross_v3_v3v3(vec2, vec1, normal); |