Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/nodes/composite/nodes/node_composite_texture.c')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_texture.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_texture.c b/source/blender/nodes/composite/nodes/node_composite_texture.c
index 7f8f14bcfc5..562e2b2737e 100644
--- a/source/blender/nodes/composite/nodes/node_composite_texture.c
+++ b/source/blender/nodes/composite/nodes/node_composite_texture.c
@@ -60,19 +60,19 @@ static void texture_procedural(CompBuf *cbuf, float *out, float xco, float yco)
retval= multitex_ext((Tex *)node->id, vec, NULL, NULL, 0, &texres);
- if(type==CB_VAL) {
- if(texres.talpha)
+ if (type==CB_VAL) {
+ if (texres.talpha)
col[0]= texres.ta;
else
col[0]= texres.tin;
}
- else if(type==CB_RGBA) {
- if(texres.talpha)
+ else if (type==CB_RGBA) {
+ if (texres.talpha)
col[3]= texres.ta;
else
col[3]= texres.tin;
- if((retval & TEX_RGB)) {
+ if ((retval & TEX_RGB)) {
col[0]= texres.tr;
col[1]= texres.tg;
col[2]= texres.tb;
@@ -92,7 +92,7 @@ static void node_composit_exec_texture(void *data, bNode *node, bNodeStack **in,
{
/* outputs: value, color, normal */
- if(node->id) {
+ if (node->id) {
RenderData *rd= data;
short sizex, sizey;
@@ -113,7 +113,7 @@ static void node_composit_exec_texture(void *data, bNode *node, bNodeStack **in,
sizex = (rd->size*rd->xsch)/100;
sizey = (rd->size*rd->ysch)/100;
- if(out[0]->hasoutput) {
+ if (out[0]->hasoutput) {
CompBuf *stackbuf= alloc_compbuf(sizex, sizey, CB_VAL, 1); /* alloc */
stackbuf->rect_procedural= texture_procedural;
@@ -126,7 +126,7 @@ static void node_composit_exec_texture(void *data, bNode *node, bNodeStack **in,
out[0]->data= stackbuf;
}
- if(out[1]->hasoutput) {
+ if (out[1]->hasoutput) {
CompBuf *stackbuf= alloc_compbuf(sizex, sizey, CB_RGBA, 1); /* alloc */
stackbuf->rect_procedural= texture_procedural;