diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 14:35:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 16:13:40 +0300 |
commit | 40d8a407d79f5feba82966e6ba6c5ecd3d20fb3a (patch) | |
tree | 35f18c23d9e4b0a91911b33a3f43b5135d06d63c /source/blender/editors/space_action/action_draw.c | |
parent | b24dfff9b70815e3dd2d7ea4fb925add30fee206 (diff) |
Fix invalid stack memory use with GPencil drawing
Diffstat (limited to 'source/blender/editors/space_action/action_draw.c')
-rw-r--r-- | source/blender/editors/space_action/action_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_draw.c b/source/blender/editors/space_action/action_draw.c index b2baace1592..a517aa3573c 100644 --- a/source/blender/editors/space_action/action_draw.c +++ b/source/blender/editors/space_action/action_draw.c @@ -271,9 +271,9 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *ar) } else if (ac->datatype == ANIMCONT_GPENCIL) { unsigned char *color; + unsigned char gpl_col[4]; if ((show_group_colors) && (ale->type == ANIMTYPE_GPLAYER)) { bGPDlayer *gpl = (bGPDlayer *)ale->data; - unsigned char gpl_col[4]; rgb_float_to_uchar(gpl_col, gpl->color); gpl_col[3] = col1[3]; |