Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_panel.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | static int compare_panel(const void *a1, const void *a2) | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| static void align_sub_panels(Panel *pa) | static void align_sub_panels(Panel *pa) | ||||
| { | { | ||||
| /* Position sub panels. */ | /* Position sub panels. */ | ||||
| int ofsy = get_panel_real_ofsy(pa) + pa->sizey - pa->blocksizey; | int ofsy = pa->ofsy + pa->sizey - pa->blocksizey; | ||||
| for (Panel *pachild = pa->children.first; pachild; pachild = pachild->next) { | for (Panel *pachild = pa->children.first; pachild; pachild = pachild->next) { | ||||
| if (pachild->runtime_flag & PNL_ACTIVE) { | if (pachild->runtime_flag & PNL_ACTIVE) { | ||||
| pachild->ofsx = pa->ofsx; | pachild->ofsx = pa->ofsx; | ||||
| pachild->ofsy = ofsy - get_panel_size_y(pachild); | pachild->ofsy = ofsy - get_panel_size_y(pachild); | ||||
| ofsy -= get_panel_real_size_y(pachild); | ofsy -= get_panel_real_size_y(pachild); | ||||
| if (pachild->children.first) { | if (pachild->children.first) { | ||||
| ▲ Show 20 Lines • Show All 1,559 Lines • Show Last 20 Lines | |||||