Cleanup: add ED_region_panels_layout

Only had the '_ex' (extended) version.
This commit is contained in:
2018-06-12 18:38:05 +02:00
parent 9b9b943e0c
commit e65d20e7dc
2 changed files with 6 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ static void hud_region_layout(const bContext *C, ARegion *ar)
int size_y = ar->sizey;
ED_region_panels_layout_ex(C, ar, NULL, -1, true);
ED_region_panels_layout(C, ar);
if (ar->panels.first && (ar->sizey != size_y)) {
View2D *v2d = &ar->v2d;

View File

@@ -2121,6 +2121,10 @@ void ED_region_panels_layout_ex(
ar->runtime.category = category;
}
}
void ED_region_panels_layout(const bContext *C, ARegion *ar)
{
ED_region_panels_layout_ex(C, ar, NULL, -1, true);
}
void ED_region_panels_draw(const bContext *C, ARegion *ar)
{
@@ -2166,7 +2170,7 @@ void ED_region_panels_ex(
void ED_region_panels(const bContext *C, ARegion *ar)
{
/* TODO: remove? */
ED_region_panels_layout_ex(C, ar, NULL, -1, true);
ED_region_panels_layout(C, ar);
ED_region_panels_draw(C, ar);
}