[Bf-blender-cvs] [479cc9a83ee] master: UI: Match row color for Summary in Mask animation editor

Antonio Vazquez noreply at git.blender.org
Thu Aug 19 17:07:07 CEST 2021


Commit: 479cc9a83eeb67cf0076384b378b50ec86cd8d5c
Author: Antonio Vazquez
Date:   Thu Aug 19 17:02:42 2021 +0200
Branches: master
https://developer.blender.org/rB479cc9a83eeb67cf0076384b378b50ec86cd8d5c

UI: Match row color for Summary in Mask animation editor

The back color of the row was missing.

===================================================================

M	source/blender/editors/space_action/action_draw.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list