mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix #119612: Markers bar in NLA blocks view of final track in list
Mistake in a96f1208cc.
When markers are present, offset should be added to the height.
Earlier it was subtracted like so `v2d->tot.ymin -= MarkerMargin` and that worked
because ymin is assigned like so `v2d->tot.ymin = -height`.
Now that the marker margin is added to the height it needs to be additive.
Pull Request: https://projects.blender.org/blender/blender/pulls/119647
This commit is contained in:
parent
30711d1398
commit
43e968dc78
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ static void nla_track_region_draw(const bContext *C, ARegion *region)
|
|||
* `UI_view2d_view_ortho`.*/
|
||||
int height = NLATRACK_TOT_HEIGHT(&ac, item_count);
|
||||
if (!BLI_listbase_is_empty(ED_context_get_markers(C))) {
|
||||
height -= (UI_MARKER_MARGIN_Y - NLATRACK_STEP(snla));
|
||||
height += (UI_MARKER_MARGIN_Y - NLATRACK_STEP(snla));
|
||||
}
|
||||
v2d->tot.ymin = -height;
|
||||
UI_view2d_curRect_clamp_y(v2d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue