[Bf-blender-cvs] [89f1ed41bdc] temp-lanpr-cleanup2: Cleanup: clang-format

Campbell Barton noreply at git.blender.org
Wed Nov 13 06:04:18 CET 2019


Commit: 89f1ed41bdc6b34e253b6ff36ad4deffa4b5ddef
Author: Campbell Barton
Date:   Fri Nov 8 11:35:17 2019 +1100
Branches: temp-lanpr-cleanup2
https://developer.blender.org/rB89f1ed41bdc6b34e253b6ff36ad4deffa4b5ddef

Cleanup: clang-format

===================================================================

M	source/blender/nodes/shader/nodes/node_shader_math.c
M	source/blender/nodes/shader/nodes/node_shader_mixRgb.c

===================================================================

diff --git a/source/blender/nodes/shader/nodes/node_shader_math.c b/source/blender/nodes/shader/nodes/node_shader_math.c
index db623c5599b..0f1113920c9 100644
--- a/source/blender/nodes/shader/nodes/node_shader_math.c
+++ b/source/blender/nodes/shader/nodes/node_shader_math.c
@@ -74,7 +74,8 @@ static int gpu_shader_math(GPUMaterial *mat,
     if (ret && node->custom2 & SHD_MATH_CLAMP) {
       float min[3] = {0.0f, 0.0f, 0.0f};
       float max[3] = {1.0f, 1.0f, 1.0f};
-      GPU_link(mat, "clamp_value", out[0].link, GPU_constant(min), GPU_constant(max), &out[0].link);
+      GPU_link(
+          mat, "clamp_value", out[0].link, GPU_constant(min), GPU_constant(max), &out[0].link);
     }
     return ret;
   }
diff --git a/source/blender/nodes/shader/nodes/node_shader_mixRgb.c b/source/blender/nodes/shader/nodes/node_shader_mixRgb.c
index 74936fedbd2..2ffaf9bf4c5 100644
--- a/source/blender/nodes/shader/nodes/node_shader_mixRgb.c
+++ b/source/blender/nodes/shader/nodes/node_shader_mixRgb.c
@@ -93,7 +93,8 @@ static int gpu_shader_mix_rgb(GPUMaterial *mat,
     if (ret && node->custom2 & SHD_MIXRGB_CLAMP) {
       float min[3] = {0.0f, 0.0f, 0.0f};
       float max[3] = {1.0f, 1.0f, 1.0f};
-      GPU_link(mat, "clamp_color", out[0].link, GPU_constant(min), GPU_constant(max), &out[0].link);
+      GPU_link(
+          mat, "clamp_color", out[0].link, GPU_constant(min), GPU_constant(max), &out[0].link);
     }
     return ret;
   }



More information about the Bf-blender-cvs mailing list