Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-22 02:30:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-22 02:30:56 +0300
commitd781ecff7534a11989d4753fd1d2641469b326d8 (patch)
tree8c6ff7cc6dc4bc4e4f8c22feb5456ee0da2602ec /source/blender/editors/gpencil
parent4bca2e455d5d5232cfbf36897427cb75f66e54aa (diff)
fix for grease pencil conversion to bezier curve reading past the end of the array.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c2
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);
}
}