diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/nodes/composite/node_composite_util.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/nodes/composite/node_composite_util.c')
-rw-r--r-- | source/blender/nodes/composite/node_composite_util.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/source/blender/nodes/composite/node_composite_util.c b/source/blender/nodes/composite/node_composite_util.c index 323cca70083..1ba81330d72 100644 --- a/source/blender/nodes/composite/node_composite_util.c +++ b/source/blender/nodes/composite/node_composite_util.c @@ -23,30 +23,29 @@ #include "node_composite_util.h" - bool cmp_node_poll_default(bNodeType *UNUSED(ntype), bNodeTree *ntree) { - return STREQ(ntree->idname, "CompositorNodeTree"); + return STREQ(ntree->idname, "CompositorNodeTree"); } void cmp_node_update_default(bNodeTree *UNUSED(ntree), bNode *node) { - bNodeSocket *sock; - for (sock = node->outputs.first; sock; sock = sock->next) { - if (sock->cache) { - //free_compbuf(sock->cache); - //sock->cache = NULL; - } - } - node->need_exec = 1; + bNodeSocket *sock; + for (sock = node->outputs.first; sock; sock = sock->next) { + if (sock->cache) { + //free_compbuf(sock->cache); + //sock->cache = NULL; + } + } + node->need_exec = 1; } void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag) { - node_type_base(ntype, type, name, nclass, flag); + node_type_base(ntype, type, name, nclass, flag); - ntype->poll = cmp_node_poll_default; - ntype->updatefunc = cmp_node_update_default; - ntype->insert_link = node_insert_link_default; - ntype->update_internal_links = node_update_internal_links_default; + ntype->poll = cmp_node_poll_default; + ntype->updatefunc = cmp_node_update_default; + ntype->insert_link = node_insert_link_default; + ntype->update_internal_links = node_update_internal_links_default; } |