From 2882cbe685e7eca2a79438998354035c5d665205 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Thu, 21 Apr 2022 10:45:17 +0200 Subject: Fix T97497: NLA strip names are now properly contained within the strip bounds Very easy fix, the bug seemed to be a result of a typo on the right-most margin. Old: {F13013777} New: {F13013782} Maniphest Tasks: T97497 Differential Revision: https://developer.blender.org/D14711 --- source/blender/editors/space_nla/nla_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_draw.c b/source/blender/editors/space_nla/nla_draw.c index eda9f89b51c..80efaf4ed9f 100644 --- a/source/blender/editors/space_nla/nla_draw.c +++ b/source/blender/editors/space_nla/nla_draw.c @@ -744,7 +744,7 @@ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region) for (strip = nlt->strips.first, index = 1; strip; strip = strip->next, index++) { if (BKE_nlastrip_within_bounds(strip, v2d->cur.xmin, v2d->cur.xmax)) { const float xminc = strip->start + text_margin_x; - const float xmaxc = strip->end + text_margin_x; + const float xmaxc = strip->end - text_margin_x; /* draw the visualization of the strip */ nla_draw_strip(snla, adt, nlt, strip, v2d, ymin, ymax); -- cgit v1.2.3