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:
authorCampbell Barton <ideasman42@gmail.com>2013-03-31 07:28:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-31 07:28:46 +0400
commite8d532f1dde96c40c1407d39260724fcfee0b606 (patch)
tree36264f1310ab0dd9af959d09373e7ad6a5e13126 /source/blender/nodes/texture
parent2c58e96685e80e4e12dfad56ed3bb51fa3824197 (diff)
style cleanup
Diffstat (limited to 'source/blender/nodes/texture')
-rw-r--r--source/blender/nodes/texture/nodes/node_texture_math.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/nodes/texture/nodes/node_texture_math.c b/source/blender/nodes/texture/nodes/node_texture_math.c
index 499412e750d..03349a57832 100644
--- a/source/blender/nodes/texture/nodes/node_texture_math.c
+++ b/source/blender/nodes/texture/nodes/node_texture_math.c
@@ -88,7 +88,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
case 7: /* Arc-Sine */
{
/* Can't do the impossible... */
- if ( in0 <= 1 && in0 >= -1 )
+ if (in0 <= 1 && in0 >= -1)
*out= asin(in0);
else
*out= 0.0;
@@ -97,7 +97,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
case 8: /* Arc-Cosine */
{
/* Can't do the impossible... */
- if ( in0 <= 1 && in0 >= -1 )
+ if (in0 <= 1 && in0 >= -1)
*out= acos(in0);
else
*out= 0.0;
@@ -111,7 +111,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
case 10: /* Power */
{
/* Only raise negative numbers by full integers */
- if ( in0 >= 0 ) {
+ if (in0 >= 0) {
out[0] = pow(in0, in1);
}
else {
@@ -128,7 +128,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
case 11: /* Logarithm */
{
/* Don't want any imaginary numbers... */
- if ( in0 > 0 && in1 > 0 )
+ if (in0 > 0 && in1 > 0)
*out= log(in0) / log(in1);
else
*out= 0.0;
@@ -136,7 +136,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
break;
case 12: /* Minimum */
{
- if ( in0 < in1 )
+ if (in0 < in1)
*out= in0;
else
*out= in1;
@@ -144,7 +144,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
break;
case 13: /* Maximum */
{
- if ( in0 > in1 )
+ if (in0 > in1)
*out= in0;
else
*out= in1;
@@ -152,13 +152,13 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
break;
case 14: /* Round */
{
- *out= (in0<0)?(int)(in0 - 0.5f):(int)(in0 + 0.5f);
+ *out= (in0 < 0) ? (int)(in0 - 0.5f) : (int)(in0 + 0.5f);
}
break;
case 15: /* Less Than */
{
- if ( in0 < in1 )
+ if (in0 < in1)
*out= 1.0f;
else
*out= 0.0f;
@@ -167,7 +167,7 @@ static void valuefn(float *out, TexParams *p, bNode *node, bNodeStack **in, shor
case 16: /* Greater Than */
{
- if ( in0 > in1 )
+ if (in0 > in1)
*out= 1.0f;
else
*out= 0.0f;