diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 12:28:08 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 12:28:37 +0300 |
commit | 782f36d6a87eb622f6052be8ce49c380a6c78e84 (patch) | |
tree | 739231fb09098f0b1138951bb492b679181fa4ff /source/blender/editors/include/ED_gpencil.h | |
parent | 018b754fb6c7ac485e1f3d8b66f0ddeee3772989 (diff) |
Fix T71260: GPencil crash when drawing very long lines
There were two problems:
1) When the buffer was reallocate, the pointer was corrupted.
2) Short variables were too small to hold long lines.
Diffstat (limited to 'source/blender/editors/include/ED_gpencil.h')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 0ff1b8bb40b..dce0e3931be 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -292,8 +292,8 @@ void ED_gpencil_select_toggle_all(struct bContext *C, int action); /* Ensure stroke sbuffer size is enough */ struct tGPspoint *ED_gpencil_sbuffer_ensure(struct tGPspoint *buffer_array, - short *buffer_size, - short *buffer_used, + int *buffer_size, + int *buffer_used, const bool clear); /* Tag all scene grease pencil object to update. */ void ED_gpencil_tag_scene_gpencil(struct Scene *scene); |