diff options
Diffstat (limited to 'source/blender/nodes')
9 files changed, 24 insertions, 24 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_colorbalance.c b/source/blender/nodes/composite/nodes/node_composite_colorbalance.c index db0689df775..27cf050c658 100644 --- a/source/blender/nodes/composite/nodes/node_composite_colorbalance.c +++ b/source/blender/nodes/composite/nodes/node_composite_colorbalance.c @@ -46,7 +46,7 @@ void ntreeCompositColorBalanceSyncFromLGG(bNodeTree *UNUSED(ntree), bNode *node) NodeColorBalance *n = node->storage; int c; - for (c = 0; c < 3; ++c) { + for (c = 0; c < 3; c++) { n->slope[c] = (2.0f - n->lift[c]) * n->gain[c]; n->offset[c] = (n->lift[c] - 1.0f) * n->gain[c]; n->power[c] = (n->gamma[c] != 0.0f) ? 1.0f / n->gamma[c] : 1000000.0f; @@ -58,7 +58,7 @@ void ntreeCompositColorBalanceSyncFromCDL(bNodeTree *UNUSED(ntree), bNode *node) NodeColorBalance *n = node->storage; int c; - for (c = 0; c < 3; ++c) { + for (c = 0; c < 3; c++) { float d = n->slope[c] + n->offset[c]; n->lift[c] = (d != 0.0f ? n->slope[c] + 2.0f * n->offset[c] / d : 0.0f); n->gain[c] = d; diff --git a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.c b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.c index dcd8589cfdd..cbae2c412ea 100644 --- a/source/blender/nodes/composite/nodes/node_composite_cryptomatte.c +++ b/source/blender/nodes/composite/nodes/node_composite_cryptomatte.c @@ -60,7 +60,7 @@ static void cryptomatte_add(NodeCryptomatte *n, float f) while (start < end) { /* Ignore leading whitespace. */ while (start < end && n->matte_id[start] == ' ') { - ++start; + start++; } /* Find the next separator. */ @@ -139,7 +139,7 @@ static void cryptomatte_remove(NodeCryptomatte *n, float f) bool skip = false; /* Ignore leading whitespace or commas. */ while (start < end && ((n->matte_id[start] == ' ') || (n->matte_id[start] == ','))) { - ++start; + start++; } /* Find the next separator. */ diff --git a/source/blender/nodes/intern/node_exec.c b/source/blender/nodes/intern/node_exec.c index 24376e39f3d..85c408c40bb 100644 --- a/source/blender/nodes/intern/node_exec.c +++ b/source/blender/nodes/intern/node_exec.c @@ -183,7 +183,7 @@ bNodeTreeExec *ntree_exec_begin(bNodeExecContext *context, /* set stack indices */ index = 0; - for (n = 0; n < totnodes; ++n) { + for (n = 0; n < totnodes; n++) { node = nodelist[n]; node->stack_index = index; @@ -213,12 +213,12 @@ bNodeTreeExec *ntree_exec_begin(bNodeExecContext *context, exec->stack = MEM_callocN(exec->stacksize * sizeof(bNodeStack), "bNodeStack"); /* all non-const results are considered inputs */ - for (n = 0; n < exec->stacksize; ++n) { + for (n = 0; n < exec->stacksize; n++) { exec->stack[n].hasinput = 1; } /* prepare all nodes for execution */ - for (n = 0, nodeexec = exec->nodeexec; n < totnodes; ++n, ++nodeexec) { + for (n = 0, nodeexec = exec->nodeexec; n < totnodes; n++, nodeexec++) { node = nodeexec->node = nodelist[n]; nodeexec->freeexecfunc = node->typeinfo->freeexecfunc; @@ -265,7 +265,7 @@ void ntree_exec_end(bNodeTreeExec *exec) MEM_freeN(exec->stack); } - for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; ++n, ++nodeexec) { + for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; n++, nodeexec++) { if (nodeexec->freeexecfunc) { nodeexec->freeexecfunc(nodeexec->data.data); } @@ -317,7 +317,7 @@ bool ntreeExecThreadNodes(bNodeTreeExec *exec, bNodeThreadStack *nts, void *call /* nodes are presorted, so exec is in order of list */ - for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; ++n, ++nodeexec) { + for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; n++, nodeexec++) { node = nodeexec->node; if (node->need_exec) { node_get_stack(node, nts->stack, nsin, nsout); diff --git a/source/blender/nodes/intern/node_util.c b/source/blender/nodes/intern/node_util.c index 0d7f19fb67a..455da4b3881 100644 --- a/source/blender/nodes/intern/node_util.c +++ b/source/blender/nodes/intern/node_util.c @@ -130,7 +130,7 @@ static bool node_link_socket_match(bNodeSocket *a, bNodeSocket *b) */ int prefix_len = 0; char *ca = a->name, *cb = b->name; - for (; *ca != '\0' && *cb != '\0'; ++ca, ++cb) { + for (; *ca != '\0' && *cb != '\0'; ca++, cb++) { /* end of common prefix? */ if (*ca != *cb) { /* prefix delimited by non-alphabetic char */ @@ -139,7 +139,7 @@ static bool node_link_socket_match(bNodeSocket *a, bNodeSocket *b) } break; } - ++prefix_len; + prefix_len++; } return prefix_len > 0; } @@ -150,10 +150,10 @@ static int node_count_links(bNodeTree *ntree, bNodeSocket *sock) int count = 0; for (link = ntree->links.first; link; link = link->next) { if (link->fromsock == sock) { - ++count; + count++; } if (link->tosock == sock) { - ++count; + count++; } } return count; @@ -321,7 +321,7 @@ static bNodeSocket *select_internal_link_input(bNode *node, bNodeSocket *output) int sel_priority = -1; bool sel_is_linked = false; - for (input = node->inputs.first, i = 0; input; input = input->next, ++i) { + for (input = node->inputs.first, i = 0; input; input = input->next, i++) { int priority = node_datatype_priority(input->type, output->type); bool is_linked = (input->link != NULL); bool preferred; diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c index a21ed6aa4cc..9caa76377fd 100644 --- a/source/blender/nodes/shader/node_shader_tree.c +++ b/source/blender/nodes/shader/node_shader_tree.c @@ -235,7 +235,7 @@ static bNode *ntree_shader_relink_output_from_group(bNodeTree *ntree, /* Create output sockets to plug output connection to. */ i = 0; - for (bNodeSocket *sock = sh_output_node->inputs.first; sock; sock = sock->next, ++i) { + for (bNodeSocket *sock = sh_output_node->inputs.first; sock; sock = sock->next, i++) { group_surface_sockets[i] = ntreeAddSocketInterface( group_ntree, SOCK_OUT, sock->typeinfo->idname, sock->name); } @@ -264,7 +264,7 @@ static bNode *ntree_shader_relink_output_from_group(bNodeTree *ntree, new_output_node->custom1 = target; i = 0; - for (bNodeSocket *sock = sh_output_node->inputs.first; sock; sock = sock->next, ++i) { + for (bNodeSocket *sock = sh_output_node->inputs.first; sock; sock = sock->next, i++) { if (sock->link != NULL) { /* Link the shader output node incoming link to the group output sockets */ bNodeSocket *group_output_node_surface_input_sock = nodeFindSocket( diff --git a/source/blender/nodes/shader/node_shader_util.c b/source/blender/nodes/shader/node_shader_util.c index cf58846a051..9615c6f01e0 100644 --- a/source/blender/nodes/shader/node_shader_util.c +++ b/source/blender/nodes/shader/node_shader_util.c @@ -231,7 +231,7 @@ void ntreeExecGPUNodes(bNodeTreeExec *exec, GPUMaterial *mat, bNode *output_node stack = exec->stack; - for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; ++n, ++nodeexec) { + for (n = 0, nodeexec = exec->nodeexec; n < exec->totnodes; n++, nodeexec++) { node = nodeexec->node; do_it = false; diff --git a/source/blender/nodes/shader/nodes/node_shader_common.c b/source/blender/nodes/shader/nodes/node_shader_common.c index 10f6aadbc5f..257caabcabf 100644 --- a/source/blender/nodes/shader/nodes/node_shader_common.c +++ b/source/blender/nodes/shader/nodes/node_shader_common.c @@ -98,7 +98,7 @@ static void group_copy_inputs(bNode *gnode, bNodeStack **in, bNodeStack *gstack) for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_INPUT) { - for (sock = node->outputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->outputs.first, a = 0; sock; sock = sock->next, a++) { ns = node_get_socket_stack(gstack, sock); if (ns) { copy_stack(ns, in[a]); @@ -120,7 +120,7 @@ static void group_move_outputs(bNode *gnode, bNodeStack **out, bNodeStack *gstac for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_OUTPUT && (node->flag & NODE_DO_OUTPUT)) { - for (sock = node->inputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->inputs.first, a = 0; sock; sock = sock->next, a++) { ns = node_get_socket_stack(gstack, sock); if (ns) { move_stack(out[a], ns); @@ -174,7 +174,7 @@ static void group_gpu_copy_inputs(bNode *gnode, GPUNodeStack *in, bNodeStack *gs for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_INPUT) { - for (sock = node->outputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->outputs.first, a = 0; sock; sock = sock->next, a++) { ns = node_get_socket_stack(gstack, sock); if (ns) { /* convert the external gpu stack back to internal node stack data */ @@ -197,7 +197,7 @@ static void group_gpu_move_outputs(bNode *gnode, GPUNodeStack *out, bNodeStack * for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_OUTPUT && (node->flag & NODE_DO_OUTPUT)) { - for (sock = node->inputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->inputs.first, a = 0; sock; sock = sock->next, a++) { ns = node_get_socket_stack(gstack, sock); if (ns) { /* convert the node stack data result back to gpu stack */ diff --git a/source/blender/nodes/shader/nodes/node_shader_curves.c b/source/blender/nodes/shader/nodes/node_shader_curves.c index baf86951fe0..f5c89e6ba41 100644 --- a/source/blender/nodes/shader/nodes/node_shader_curves.c +++ b/source/blender/nodes/shader/nodes/node_shader_curves.c @@ -141,7 +141,7 @@ static int gpu_shader_curve_rgb(GPUMaterial *mat, float ext_rgba[4][4]; float range_rgba[4]; - for (int a = 0; a < CM_TOT; ++a) { + for (int a = 0; a < CM_TOT; a++) { const CurveMap *cm = &cumap->cm[a]; ext_rgba[a][0] = cm->mintable; ext_rgba[a][2] = cm->maxtable; diff --git a/source/blender/nodes/texture/nodes/node_texture_common.c b/source/blender/nodes/texture/nodes/node_texture_common.c index b8435d3a352..a505bed2458 100644 --- a/source/blender/nodes/texture/nodes/node_texture_common.c +++ b/source/blender/nodes/texture/nodes/node_texture_common.c @@ -84,7 +84,7 @@ static void group_copy_inputs(bNode *gnode, bNodeStack **in, bNodeStack *gstack) for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_INPUT) { - for (sock = node->outputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->outputs.first, a = 0; sock; sock = sock->next, a++) { if (in[a]) { /* shouldn't need to check this [#36694] */ ns = node_get_socket_stack(gstack, sock); if (ns) { @@ -108,7 +108,7 @@ static void group_copy_outputs(bNode *gnode, bNodeStack **out, bNodeStack *gstac for (node = ngroup->nodes.first; node; node = node->next) { if (node->type == NODE_GROUP_OUTPUT && (node->flag & NODE_DO_OUTPUT)) { - for (sock = node->inputs.first, a = 0; sock; sock = sock->next, ++a) { + for (sock = node->inputs.first, a = 0; sock; sock = sock->next, a++) { if (out[a]) { /* shouldn't need to check this [#36694] */ ns = node_get_socket_stack(gstack, sock); if (ns) { |