diff options
author | Julian Eisel <julian@blender.org> | 2020-03-06 18:56:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-06 19:19:23 +0300 |
commit | b2ee1770d4c31078518f4ec9edd5196a41345162 (patch) | |
tree | 6b7f6ff9057322245fc3b3407bece3f1c0cb3eb5 /source/blender/editors/gpencil/gpencil_intern.h | |
parent | b825a95ec311a169d33fe21e28418f11a516c82f (diff) |
Cleanup: Rename ARegion variables from ar to region
The old convention was easy to confuse with ScrArea.
Part of https://developer.blender.org/T74432.
This is mostly a batch rename with some manual fixing. Only single word
variable names are changed, no prefixed/suffixed names.
Brecht van Lommel and Campbell Barton both gave me a green light for
this convention change.
Also ran clan clang format on affected files.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_intern.h')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_intern.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h index 69ec11685fb..077b5b88118 100644 --- a/source/blender/editors/gpencil/gpencil_intern.h +++ b/source/blender/editors/gpencil/gpencil_intern.h @@ -116,7 +116,7 @@ typedef struct tGPDinterpolate { /** area where painting originated */ struct ScrArea *sa; /** region where painting originated */ - struct ARegion *ar; + struct ARegion *region; /** current GP datablock */ struct bGPdata *gpd; /** current material */ @@ -162,7 +162,7 @@ typedef struct tGPDprimitive { /** view3d where painting originated */ struct View3D *v3d; /** region where painting originated */ - struct ARegion *ar; + struct ARegion *region; /** current GP datablock */ struct bGPdata *gpd; /** current material */ @@ -252,7 +252,7 @@ typedef struct GP_SpaceConversion { struct bGPDlayer *gpl; struct ScrArea *sa; - struct ARegion *ar; + struct ARegion *region; struct View2D *v2d; rctf *subrect; /* for using the camera rect within the 3d view */ @@ -308,7 +308,7 @@ bool gp_point_xy_to_3d(const GP_SpaceConversion *gsc, /* helper to convert 2d to 3d */ void gp_stroke_convertcoords_tpoint(struct Scene *scene, - struct ARegion *ar, + struct ARegion *region, struct Object *ob, bGPDlayer *gpl, const struct tGPspoint *point2D, |