diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-21 00:01:19 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-07-30 18:11:56 +0300 |
commit | 7f29fc7415a49d5688efbe10fa0a81b174d49435 (patch) | |
tree | 5feca8d0936990eb434cd860e716fc7316773bfb /source/blender/editors/gpencil/annotate_draw.c | |
parent | f69e57a53fab92d549a90a0198b86ff766ba0da2 (diff) |
Fix T65691: GPencil Drawing long strokes turn invisible
There was a fixed limit to the number of points available in a buffer stroke.
Now, the array is expanded as needed using a predefined number of points for each expansion, instead to add one by one. This is done to reduce the number of times the memory allocation is required.
As part of the fix, some variables have been renamed to reflect better their use.
Diffstat (limited to 'source/blender/editors/gpencil/annotate_draw.c')
-rw-r--r-- | source/blender/editors/gpencil/annotate_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/annotate_draw.c b/source/blender/editors/gpencil/annotate_draw.c index e8f97290173..dce6ed29c05 100644 --- a/source/blender/editors/gpencil/annotate_draw.c +++ b/source/blender/editors/gpencil/annotate_draw.c @@ -924,7 +924,7 @@ static void annotation_draw_data_layers( * i.e. tGPspoints NOT bGPDspoints */ annotation_draw_stroke_buffer(gpd->runtime.sbuffer, - gpd->runtime.sbuffer_size, + gpd->runtime.sbuffer_used, lthick, dflag, gpd->runtime.sbuffer_sflag, |