Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_layout.c
| Show First 20 Lines • Show All 3,006 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| uiItem *item; | uiItem *item; | ||||
| uiButtonItem *bitem; | uiButtonItem *bitem; | ||||
| uiLayoutItemBx *box; | uiLayoutItemBx *box; | ||||
| for (item = litem->items.last; item; item = item->prev) { | for (item = litem->items.last; item; item = item->prev) { | ||||
| if (item->type == ITEM_BUTTON) { | if (item->type == ITEM_BUTTON) { | ||||
| bitem = (uiButtonItem *)item; | bitem = (uiButtonItem *)item; | ||||
| #ifndef NEW_ALIGN_CODE | |||||
| if (ui_but_can_align(bitem->but)) | if (ui_but_can_align(bitem->but)) | ||||
| #endif | |||||
| if (!bitem->but->alignnr) | if (!bitem->but->alignnr) | ||||
| bitem->but->alignnr = nr; | bitem->but->alignnr = nr; | ||||
| } | } | ||||
| else if (item->type == ITEM_LAYOUT_ABSOLUTE) { | else if (item->type == ITEM_LAYOUT_ABSOLUTE) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else if (item->type == ITEM_LAYOUT_OVERLAP) { | else if (item->type == ITEM_LAYOUT_OVERLAP) { | ||||
| /* pass */ | /* pass */ | ||||
| ▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines | |||||