Cleanup: rename region_evaulate_visibility > region_evaluate_visibility

_No response_

Pull Request: https://projects.blender.org/blender/blender/pulls/148268
This commit is contained in:
Philipp Oeser
2025-10-17 19:44:59 +02:00
committed by Philipp Oeser
parent 4340d5fff9
commit cc44420912

View File

@@ -1921,7 +1921,7 @@ static void area_calc_totrct(const bScreen *screen, ScrArea *area, const rcti *w
/** /**
* Update the `ARegion::visible` flag. * Update the `ARegion::visible` flag.
*/ */
static void region_evaulate_visibility(ARegion *region) static void region_evaluate_visibility(ARegion *region)
{ {
bool hidden = (region->flag & (RGN_FLAG_POLL_FAILED | RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) != bool hidden = (region->flag & (RGN_FLAG_POLL_FAILED | RGN_FLAG_HIDDEN | RGN_FLAG_TOO_SMALL)) !=
0; 0;
@@ -2067,7 +2067,7 @@ void ED_area_update_region_sizes(wmWindowManager *wm, wmWindow *win, ScrArea *ar
if (region->flag & RGN_FLAG_POLL_FAILED) { if (region->flag & RGN_FLAG_POLL_FAILED) {
continue; continue;
} }
region_evaulate_visibility(region); region_evaluate_visibility(region);
/* region size may have changed, init does necessary adjustments */ /* region size may have changed, init does necessary adjustments */
if (region->runtime->type->init) { if (region->runtime->type->init) {
@@ -2178,7 +2178,7 @@ void ED_area_init(bContext *C, const wmWindow *win, ScrArea *area)
/* region windows, default and own handlers */ /* region windows, default and own handlers */
LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { LISTBASE_FOREACH (ARegion *, region, &area->regionbase) {
region_evaulate_visibility(region); region_evaluate_visibility(region);
if (region->runtime->visible) { if (region->runtime->visible) {
/* default region handlers */ /* default region handlers */
@@ -2303,7 +2303,7 @@ void ED_region_floating_init(ARegion *region)
BLI_assert(region->alignment == RGN_ALIGN_FLOAT); BLI_assert(region->alignment == RGN_ALIGN_FLOAT);
/* refresh can be called before window opened */ /* refresh can be called before window opened */
region_evaulate_visibility(region); region_evaluate_visibility(region);
region_update_rect(region); region_update_rect(region);
} }