diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 02:30:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 02:30:56 +0300 |
commit | d781ecff7534a11989d4753fd1d2641469b326d8 (patch) | |
tree | 8c6ff7cc6dc4bc4e4f8c22feb5456ee0da2602ec /source/blender | |
parent | 4bca2e455d5d5232cfbf36897427cb75f66e54aa (diff) |
fix for grease pencil conversion to bezier curve reading past the end of the array.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index f1be2ae9a64..e9154b59ebf 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -488,7 +488,7 @@ static void gp_stroke_to_bezier (bContext *C, bGPDlayer *gpl, bGPDstroke *gps, C copy_v3_v3(p3d_prev, p3d_cur); copy_v3_v3(p3d_cur, p3d_next); - if (i < tot) { + if (i + 1 < tot) { gp_strokepoint_convertcoords(C, gps, pt+1, p3d_next); } } |