diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-30 02:10:47 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-30 02:10:47 +0300 |
commit | 748f468fdc7b80b7e84a854c63443050fcacad9c (patch) | |
tree | a699415443baf6df330e3ab5542e071dbcc7dcee /source/blender/editors/uvedit | |
parent | dca9aa0053f7d711c1b42a4f2042827a1e286bea (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/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_rip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_rip.c b/source/blender/editors/uvedit/uvedit_rip.c index 4da1edea8b4..c8aa21191ba 100644 --- a/source/blender/editors/uvedit/uvedit_rip.c +++ b/source/blender/editors/uvedit/uvedit_rip.c @@ -938,10 +938,10 @@ static int uv_rip_exec(bContext *C, wmOperator *op) static int uv_rip_invoke(bContext *C, wmOperator *op, const wmEvent *event) { - ARegion *ar = CTX_wm_region(C); + ARegion *region = CTX_wm_region(C); float co[2]; - UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &co[0], &co[1]); + UI_view2d_region_to_view(®ion->v2d, event->mval[0], event->mval[1], &co[0], &co[1]); RNA_float_set_array(op->ptr, "location", co); return uv_rip_exec(C, op); |