Fix: Add missing "-" in logic to get the channel height

This was missed when doing the refactoring in #104500
It didn't seem to have any effect until I worked on clamping the view
This commit is contained in:
Christoph Lendenfeld
2023-02-09 15:59:57 +01:00
parent 7ca651d182
commit b8e15a4a84

View File

@@ -4407,7 +4407,7 @@ float ANIM_UI_get_channel_step(void)
float ANIM_UI_get_channels_total_height(View2D *v2d, const int item_count)
{
return ANIM_UI_get_first_channel_top(v2d) + ANIM_UI_get_channel_step() * (item_count + 1);
return -ANIM_UI_get_first_channel_top(v2d) + ANIM_UI_get_channel_step() * (item_count + 1);
}
float ANIM_UI_get_channel_name_width(void)