Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/screen.c
| Show First 20 Lines • Show All 850 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH_MUTABLE (ScrVert *, sv, &screen->vertbase) { | ||||
| else { | else { | ||||
| sv->flag = 0; | sv->flag = 0; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* ***************** Utilities ********************** */ | /* ***************** Utilities ********************** */ | ||||
| ARegion *BKE_region_find_in_listbase_by_type(const ListBase *regionbase, const int region_type) | |||||
| { | |||||
| LISTBASE_FOREACH (ARegion *, region, regionbase) { | |||||
| if (region->regiontype == region_type) { | |||||
| return region; | |||||
| } | |||||
| } | |||||
| return NULL; | |||||
| } | |||||
| ARegion *BKE_area_find_region_type(const ScrArea *area, int region_type) | ARegion *BKE_area_find_region_type(const ScrArea *area, int region_type) | ||||
| { | { | ||||
| if (area) { | if (area) { | ||||
| LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | ||||
| if (region->regiontype == region_type) { | if (region->regiontype == region_type) { | ||||
| return region; | return region; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,084 Lines • Show Last 20 Lines | |||||