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/object/object_modes.c | |
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/object/object_modes.c')
-rw-r--r-- | source/blender/editors/object/object_modes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_modes.c b/source/blender/editors/object/object_modes.c index 9eaa8f3d31b..5a6fa2b8e3e 100644 --- a/source/blender/editors/object/object_modes.c +++ b/source/blender/editors/object/object_modes.c @@ -423,7 +423,7 @@ static bool object_switch_object_poll(bContext *C) static int object_switch_object_invoke(bContext *C, wmOperator *op, const wmEvent *event) { - ARegion *ar = CTX_wm_region(C); + ARegion *region = CTX_wm_region(C); Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); @@ -464,7 +464,7 @@ static int object_switch_object_invoke(bContext *C, wmOperator *op, const wmEven /* Update the viewport rotation origin to the mouse cursor. */ if (last_mode & OB_MODE_ALL_PAINT) { float global_loc[3]; - if (ED_view3d_autodist_simple(ar, event->mval, global_loc, 0, NULL)) { + if (ED_view3d_autodist_simple(region, event->mval, global_loc, 0, NULL)) { UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings; copy_v3_v3(ups->average_stroke_accum, global_loc); ups->average_stroke_counter = 1; |