From b2ee1770d4c31078518f4ec9edd5196a41345162 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 6 Mar 2020 16:56:42 +0100 Subject: 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. --- source/blender/editors/space_node/node_intern.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_node/node_intern.h') diff --git a/source/blender/editors/space_node/node_intern.h b/source/blender/editors/space_node/node_intern.h index 1825396805c..c1aeca87d7b 100644 --- a/source/blender/editors/space_node/node_intern.h +++ b/source/blender/editors/space_node/node_intern.h @@ -63,7 +63,7 @@ int node_get_colorid(struct bNode *node); int node_get_resize_cursor(int directions); void node_draw_shadow(struct SpaceNode *snode, struct bNode *node, float radius, float alpha); void node_draw_default(const struct bContext *C, - struct ARegion *ar, + struct ARegion *region, struct SpaceNode *snode, struct bNodeTree *ntree, struct bNode *node, @@ -79,11 +79,11 @@ int node_select_area_default(struct bNode *node, int x, int y); int node_tweak_area_default(struct bNode *node, int x, int y); void node_update_nodetree(const struct bContext *C, struct bNodeTree *ntree); void node_draw_nodetree(const struct bContext *C, - struct ARegion *ar, + struct ARegion *region, struct SpaceNode *snode, struct bNodeTree *ntree, bNodeInstanceKey parent_key); -void drawnodespace(const bContext *C, ARegion *ar); +void drawnodespace(const bContext *C, ARegion *region); void node_set_cursor(struct wmWindow *win, struct SpaceNode *snode, float cursor[2]); /* DPI scaled coords */ @@ -123,7 +123,7 @@ void NODE_OT_find_node(struct wmOperatorType *ot); /* node_view.c */ int space_node_view_flag(struct bContext *C, SpaceNode *snode, - ARegion *ar, + ARegion *region, const int node_flag, const int smooth_viewtx); @@ -162,7 +162,7 @@ void node_draw_link_straight(View2D *v2d, int th_col3); #endif void draw_nodespace_back_pix(const struct bContext *C, - struct ARegion *ar, + struct ARegion *region, struct SpaceNode *snode, bNodeInstanceKey parent_key); -- cgit v1.2.3