Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 4,201 Lines • ▼ Show 20 Lines | typedef struct RegionAlphaInfo { | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| ARegion *ar, *child_ar; /* other region */ | ARegion *ar, *child_ar; /* other region */ | ||||
| int hidden; | int hidden; | ||||
| } RegionAlphaInfo; | } RegionAlphaInfo; | ||||
| #define TIMEOUT 0.2f | #define TIMEOUT 0.2f | ||||
| #define TIMESTEP 0.04f | #define TIMESTEP 0.04f | ||||
| float ED_region_blend_factor(ARegion *ar) | float ED_region_blend_alpha(ARegion *ar) | ||||
| { | { | ||||
| /* check parent too */ | /* check parent too */ | ||||
| if (ar->regiontimer == NULL && (ar->alignment & RGN_SPLIT_PREV) && ar->prev) { | if (ar->regiontimer == NULL && (ar->alignment & RGN_SPLIT_PREV) && ar->prev) { | ||||
| ar = ar->prev; | ar = ar->prev; | ||||
| } | } | ||||
| if (ar->regiontimer) { | if (ar->regiontimer) { | ||||
| RegionAlphaInfo *rgi = ar->regiontimer->customdata; | RegionAlphaInfo *rgi = ar->regiontimer->customdata; | ||||
| ▲ Show 20 Lines • Show All 476 Lines • Show Last 20 Lines | |||||