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>2019-07-10 07:41:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-10 07:41:19 +0300
commite927ce8acb6848974077fbbd6dc110dd3948b48a (patch)
tree7b955f22aa42f1eaf0d6bd88aff202c3a2f41f9f /source/blender/nodes
parent91b8e57d653a1dce80f4e7c83ddfd0b596020590 (diff)
Cleanup: avoid line breaks from trailing comments
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_math.c53
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_vectMath.c4
2 files changed, 24 insertions, 33 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_math.c b/source/blender/nodes/shader/nodes/node_shader_math.c
index 70432e04180..f0cd2273e67 100644
--- a/source/blender/nodes/shader/nodes/node_shader_math.c
+++ b/source/blender/nodes/shader/nodes/node_shader_math.c
@@ -64,9 +64,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_SIN: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = sinf(a);
}
else {
@@ -75,9 +74,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_COS: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = cosf(a);
}
else {
@@ -86,9 +84,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_TAN: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = tanf(a);
}
else {
@@ -97,8 +94,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_ASIN: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) { /* This one only takes one input, so we've got to choose. */
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
/* Can't do the impossible... */
if (a <= 1 && a >= -1) {
r = asinf(a);
@@ -119,8 +116,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_ACOS: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) { /* This one only takes one input, so we've got to choose. */
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
/* Can't do the impossible... */
if (a <= 1 && a >= -1) {
r = acosf(a);
@@ -141,9 +138,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_ATAN: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = atan(a);
}
else {
@@ -200,9 +196,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_ROUND: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = (a < 0) ? (int)(a - 0.5f) : (int)(a + 0.5f);
}
else {
@@ -246,9 +241,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_FLOOR: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = floorf(a);
}
else {
@@ -257,9 +251,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_CEIL: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = ceilf(a);
}
else {
@@ -268,9 +261,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_FRACT: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
r = a - floorf(a);
}
else {
@@ -279,9 +271,8 @@ static void node_shader_exec_math(void *UNUSED(data),
break;
}
case NODE_MATH_SQRT: {
- if (in[0]->hasinput ||
- !in[1]->hasinput) /* This one only takes one input, so we've got to choose. */
- {
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
if (a > 0) {
r = sqrt(a);
}
diff --git a/source/blender/nodes/shader/nodes/node_shader_vectMath.c b/source/blender/nodes/shader/nodes/node_shader_vectMath.c
index c6b74e2a727..41273a6dc1d 100644
--- a/source/blender/nodes/shader/nodes/node_shader_vectMath.c
+++ b/source/blender/nodes/shader/nodes/node_shader_vectMath.c
@@ -78,8 +78,8 @@ static void node_shader_exec_vect_math(void *UNUSED(data),
out[1]->vec[0] = normalize_v3(out[0]->vec);
}
else if (node->custom1 == 5) { /* Normalize */
- if (in[0]->hasinput ||
- !in[1]->hasinput) { /* This one only takes one input, so we've got to choose. */
+ /* This one only takes one input, so we've got to choose. */
+ if (in[0]->hasinput || !in[1]->hasinput) {
out[0]->vec[0] = vec1[0];
out[0]->vec[1] = vec1[1];
out[0]->vec[2] = vec1[2];