diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-27 11:57:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-27 11:57:17 +0400 |
commit | d612fc04267ca035930eddbfa431f567599baa2c (patch) | |
tree | 9826916848dba3ef6e9f73d93a3f1294b4b3d19a /source/blender/nodes/texture/nodes/node_texture_output.c | |
parent | ac0a8af41413b730c0ab17cf19390c65dee3134c (diff) |
style cleanup: nodes
Diffstat (limited to 'source/blender/nodes/texture/nodes/node_texture_output.c')
-rw-r--r-- | source/blender/nodes/texture/nodes/node_texture_output.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/nodes/texture/nodes/node_texture_output.c b/source/blender/nodes/texture/nodes/node_texture_output.c index bdd3b5547cb..8b36a764eca 100644 --- a/source/blender/nodes/texture/nodes/node_texture_output.c +++ b/source/blender/nodes/texture/nodes/node_texture_output.c @@ -37,7 +37,7 @@ static bNodeSocketTemplate inputs[] = { { SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f}, { SOCK_VECTOR, 1, N_("Normal"), 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, PROP_DIRECTION}, - { -1, 0, "" } + { -1, 0, ""} }; /* applies to render pipeline */ @@ -88,10 +88,10 @@ static void unique_name(bNode *node) i = node; while (i->prev) i = i->prev; - for ( ; i; i = i->next) { + for (; i; i = i->next) { if (i == node || i->type != TEX_NODE_OUTPUT || - strcmp(name, ((TexNodeOutput*)(i->storage))->name)) + !STREQ(name, ((TexNodeOutput *)(i->storage))->name)) { continue; } @@ -130,11 +130,11 @@ static void assign_index(struct bNode *node) while (tnode->prev) tnode = tnode->prev; - check_index: - for (; tnode; tnode= tnode->next) +check_index: + for (; tnode; tnode = tnode->next) if (tnode->type == TEX_NODE_OUTPUT && tnode != node) if (tnode->custom1 == index) { - index ++; + index++; goto check_index; } @@ -144,7 +144,7 @@ static void assign_index(struct bNode *node) static void init(bNodeTree *UNUSED(ntree), bNode *node) { TexNodeOutput *tno = MEM_callocN(sizeof(TexNodeOutput), "TEX_output"); - node->storage= tno; + node->storage = tno; strcpy(tno->name, "Default"); unique_name(node); @@ -162,7 +162,7 @@ void register_node_type_tex_output(void) { static bNodeType ntype; - tex_node_type_base(&ntype, TEX_NODE_OUTPUT, "Output", NODE_CLASS_OUTPUT, NODE_PREVIEW|NODE_OPTIONS); + tex_node_type_base(&ntype, TEX_NODE_OUTPUT, "Output", NODE_CLASS_OUTPUT, NODE_PREVIEW | NODE_OPTIONS); node_type_socket_templates(&ntype, inputs, NULL); node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); node_type_init(&ntype, init); |