Commit: 6f167ccc79b5a412c4883df47b10e15bef158509
Author: Antonioya
Date: Tue Jan 22 16:48:45 2019 +0100
Branches: master
https://developer.blender.org/rB6f167ccc79b5a412c4883df47b10e15bef158509
Fix T60748: Move GP stroke extremes with noise modifier
===================================================================
M source/blender/gpencil_modifiers/intern/MOD_gpencilnoise.c
===================================================================
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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs