Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-30 02:10:47 +0300
committerHans Goudey <h.goudey@me.com>2020-11-30 02:10:47 +0300
commit748f468fdc7b80b7e84a854c63443050fcacad9c (patch)
treea699415443baf6df330e3ab5542e071dbcc7dcee /source/blender/editors/interface
parentdca9aa0053f7d711c1b42a4f2042827a1e286bea (diff)
Cleanup: Use "region" for ARegion variable names
As proposed in T74432 and already implemented in several commits, "region" is the preferred name for `ARegion` variables, rather than any variant of "ar". This commit changes a few "ar" variables that have popped up over time and also adjusted names of variants like "arnew".
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index 4fe4bbaf189..3c028977a36 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -8363,8 +8363,8 @@ uiBut *UI_context_active_but_get(const bContext *C)
*/
uiBut *UI_context_active_but_get_respect_menu(const bContext *C)
{
- ARegion *ar_menu = CTX_wm_menu(C);
- return ui_context_button_active(ar_menu ? ar_menu : CTX_wm_region(C), NULL);
+ ARegion *region_menu = CTX_wm_menu(C);
+ return ui_context_button_active(region_menu ? region_menu : CTX_wm_region(C), NULL);
}
uiBut *UI_region_active_but_get(ARegion *region)