diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-08-19 18:02:42 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-08-19 18:06:49 +0300 |
commit | 479cc9a83eeb67cf0076384b378b50ec86cd8d5c (patch) | |
tree | cb706495976cb44f0e12ad47f4414892d1daad38 /source/blender/editors/space_action | |
parent | 71655ff8dfae7eb63a237f03bea414ff4ebc5714 (diff) |
UI: Match row color for Summary in Mask animation editor
The back color of the row was missing.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/action_draw.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_draw.c b/source/blender/editors/space_action/action_draw.c index 0a143c35a2a..a15f3507d7e 100644 --- a/source/blender/editors/space_action/action_draw.c +++ b/source/blender/editors/space_action/action_draw.c @@ -271,7 +271,14 @@ void draw_channel_strips(bAnimContext *ac, SpaceAction *saction, ARegion *region else if (ac->datatype == ANIMCONT_MASK) { /* TODO: this is a copy of gpencil. */ /* frames less than one get less saturated background */ - uchar *color = sel ? col1 : col2; + uchar *color; + if (ale->type == ANIMTYPE_SUMMARY) { + color = col_summary; + color[3] = col1[3]; + } + else { + color = sel ? col1 : col2; + } immUniformColor4ubv(color); immRectf(pos, 0.0f, ymin, v2d->cur.xmin, ymax); |