diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 06:51:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 06:51:46 +0400 |
commit | 2f348d8b5d7d897ad44d192a2fd5f2b99b906c76 (patch) | |
tree | 1b2612031fd1cb0e521c2e0e444e7b0bd2b77646 /source/blender/editors/space_node/drawnode.c | |
parent | d6fd5266d0514e6d31fd0e11aab5322846d78589 (diff) |
style cleanup: mainly for mesh code, also some WM function use.
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 4660b7703d8..b76eb6a4879 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -512,15 +512,15 @@ static int node_resize_area_default(bNode *node, int x, int y) if (node->flag & NODE_HIDDEN) { rctf totr= node->totr; /* right part of node */ - totr.xmin= node->totr.xmax-20.0f; + totr.xmin = node->totr.xmax-20.0f; return BLI_in_rctf(&totr, x, y); } else { /* rect we're interested in is just the bottom right corner */ rctf totr= node->totr; /* bottom right corner */ - totr.xmin= totr.xmax-10.0f; - totr.ymax= totr.ymin+10.0f; + totr.xmin = totr.xmax-10.0f; + totr.ymax = totr.ymin+10.0f; return BLI_in_rctf(&totr, x, y); } } @@ -952,13 +952,13 @@ static void node_update_frame(const bContext *UNUSED(C), bNodeTree *UNUSED(ntree /* get "global" coords */ nodeSpaceCoords(node, &locx, &locy); - node->prvr.xmin= locx + NODE_DYS; - node->prvr.xmax= locx + node->width- NODE_DYS; + node->prvr.xmin = locx + NODE_DYS; + node->prvr.xmax = locx + node->width- NODE_DYS; - node->totr.xmin= locx; - node->totr.xmax= locx + node->width; - node->totr.ymax= locy; - node->totr.ymin= locy - node->height; + node->totr.xmin = locx; + node->totr.xmax = locx + node->width; + node->totr.ymax = locy; + node->totr.ymin = locy - node->height; } static void node_common_set_butfunc(bNodeType *ntype) |