Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_nla/nla_draw.c')
-rw-r--r--source/blender/editors/space_nla/nla_draw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c
index 6fe980cf657..0ff656f340a 100644
--- a/source/blender/editors/space_nla/nla_draw.c
+++ b/source/blender/editors/space_nla/nla_draw.c
@@ -463,11 +463,17 @@ static void nla_draw_strip(SpaceNla *snla,
*/
if (strip->prev == NULL) {
/* set the drawing color to the color of the strip, but with very faint alpha */
- immUniformColor3fvAlpha(color, 0.15f);
+ immUniformColor3fvAlpha(color, 0.30f);
/* draw the rect to the edge of the screen */
immRectf(shdr_pos, v2d->cur.xmin, yminc, strip->start, ymaxc);
}
+ else {
+ immUniformColor3fvAlpha(color, 0.30f);
+ /* Draw the rect to the prev strip. This will overlap with previous strip's Hold_Forward
+ * which is OK. */
+ immRectf(shdr_pos, strip->prev->end, yminc, strip->start, ymaxc);
+ }
ATTR_FALLTHROUGH;
/* this only draws after the strip */