Cleanup: Rename ScrArea variables from sa to area
Follow up ofb2ee1770d4and10c2254d41, 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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user