Cleanup: Rename ScrArea variables from sa to area

Follow up of b2ee1770d4 and 10c2254d41, part of T74432.
Now the area and region naming conventions should be less confusing.

Mostly a careful batch rename but had to do few smaller fixes.

Also ran clang-format on affected files.
This commit is contained in:
2020-04-03 13:25:03 +02:00
parent 1a69384e76
commit 905c0269f3
225 changed files with 3205 additions and 3163 deletions

View File

@@ -135,10 +135,10 @@ bool PE_hair_poll(bContext *C)
bool PE_poll_view3d(bContext *C)
{
ScrArea *sa = CTX_wm_area(C);
ScrArea *area = CTX_wm_area(C);
ARegion *region = CTX_wm_region(C);
return (PE_poll(C) && (sa && sa->spacetype == SPACE_VIEW3D) &&
return (PE_poll(C) && (area && area->spacetype == SPACE_VIEW3D) &&
(region && region->regiontype == RGN_TYPE_WINDOW));
}