[Bf-blender-cvs] [9af147b5d33] master: Cleanup: make format

Aaron Carlisle noreply at git.blender.org
Wed Nov 4 08:15:09 CET 2020


Commit: 9af147b5d339941c0cff3d7084a9c4b497c9a854
Author: Aaron Carlisle
Date:   Wed Nov 4 02:14:48 2020 -0500
Branches: master
https://developer.blender.org/rB9af147b5d339941c0cff3d7084a9c4b497c9a854

Cleanup: make format

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

M	source/blender/blenlib/BLI_noise.h
M	source/blender/blenlib/intern/noise.c
M	source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl
M	source/blender/makesdna/DNA_space_types.h
M	source/blender/render/intern/source/render_texture.c

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

diff --git a/source/blender/blenlib/BLI_noise.h b/source/blender/blenlib/BLI_noise.h
index 267f1361a89..e9279f03e24 100644
--- a/source/blender/blenlib/BLI_noise.h
+++ b/source/blender/blenlib/BLI_noise.h
@@ -39,36 +39,37 @@ float BLI_gNoise(float noisesize, float x, float y, float z, int hard, int noise
 float BLI_gTurbulence(
     float noisesize, float x, float y, float z, int oct, int hard, int noisebasis);
 /* newnoise: musgrave functions */
-float BLI_mg_fBm(float x, float y, float z, float H, float lacunarity, float octaves, int noisebasis);
+float BLI_mg_fBm(
+    float x, float y, float z, float H, float lacunarity, float octaves, int noisebasis);
 float BLI_mg_MultiFractal(
     float x, float y, float z, float H, float lacunarity, float octaves, int noisebasis);
 float BLI_mg_VLNoise(float x, float y, float z, float distortion, int nbas1, int nbas2);
 float BLI_mg_HeteroTerrain(float x,
-                       float y,
-                       float z,
-                       float H,
-                       float lacunarity,
-                       float octaves,
-                       float offset,
-                       int noisebasis);
+                           float y,
+                           float z,
+                           float H,
+                           float lacunarity,
+                           float octaves,
+                           float offset,
+                           int noisebasis);
 float BLI_mg_HybridMultiFractal(float x,
-                            float y,
-                            float z,
-                            float H,
-                            float lacunarity,
-                            float octaves,
-                            float offset,
-                            float gain,
-                            int noisebasis);
+                                float y,
+                                float z,
+                                float H,
+                                float lacunarity,
+                                float octaves,
+                                float offset,
+                                float gain,
+                                int noisebasis);
 float BLI_mg_RidgedMultiFractal(float x,
-                            float y,
-                            float z,
-                            float H,
-                            float lacunarity,
-                            float octaves,
-                            float offset,
-                            float gain,
-                            int noisebasis);
+                                float y,
+                                float z,
+                                float H,
+                                float lacunarity,
+                                float octaves,
+                                float offset,
+                                float gain,
+                                int noisebasis);
 /* newnoise: voronoi */
 void BLI_voronoi(float x, float y, float z, float *da, float *pa, float me, int dtype);
 /* newnoise: BLI_cellNoise & BLI_cellNoiseV (for vector/point/color) */
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index cbb02cce288..503d95936a9 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -1319,7 +1319,8 @@ float BLI_gTurbulence(
  *    ``lacunarity''  is the gap between successive frequencies
  *    ``octaves''  is the number of frequencies in the fBm
  */
-float BLI_mg_fBm(float x, float y, float z, float H, float lacunarity, float octaves, int noisebasis)
+float BLI_mg_fBm(
+    float x, float y, float z, float H, float lacunarity, float octaves, int noisebasis)
 {
   float rmd, value = 0.0, pwr = 1.0, pwHL = powf(lacunarity, -H);
   int i;
@@ -1460,13 +1461,13 @@ float BLI_mg_MultiFractal(
  *       ``offset''  raises the terrain from `sea level'
  */
 float BLI_mg_HeteroTerrain(float x,
-                       float y,
-                       float z,
-                       float H,
-                       float lacunarity,
-                       float octaves,
-                       float offset,
-                       int noisebasis)
+                           float y,
+                           float z,
+                           float H,
+                           float lacunarity,
+                           float octaves,
+                           float offset,
+                           int noisebasis)
 {
   float value, increment, rmd;
   int i;
@@ -1540,14 +1541,14 @@ float BLI_mg_HeteroTerrain(float x,
  *      offset:      0.7
  */
 float BLI_mg_HybridMultiFractal(float x,
-                            float y,
-                            float z,
-                            float H,
-                            float lacunarity,
-                            float octaves,
-                            float offset,
-                            float gain,
-                            int noisebasis)
+                                float y,
+                                float z,
+                                float H,
+                                float lacunarity,
+                                float octaves,
+                                float offset,
+                                float gain,
+                                int noisebasis)
 {
   float result, signal, weight, rmd;
   int i;
@@ -1627,14 +1628,14 @@ float BLI_mg_HybridMultiFractal(float x,
  *      gain:        2.0
  */
 float BLI_mg_RidgedMultiFractal(float x,
-                            float y,
-                            float z,
-                            float H,
-                            float lacunarity,
-                            float octaves,
-                            float offset,
-                            float gain,
-                            int noisebasis)
+                                float y,
+                                float z,
+                                float H,
+                                float lacunarity,
+                                float octaves,
+                                float offset,
+                                float gain,
+                                int noisebasis)
 {
   float result, signal, weight;
   int i;
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl
index 631d91c89d6..faf37db3ea6 100644
--- a/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl
+++ b/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl
@@ -1,4 +1,5 @@
-void node_attribute(vec4 attr, out vec4 outcol, out vec3 outvec, out float outf, out float outalpha)
+void node_attribute(
+    vec4 attr, out vec4 outcol, out vec3 outvec, out float outf, out float outalpha)
 {
   outcol = vec4(attr.xyz, 1.0);
   outvec = attr.xyz;
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index fe8ef421963..1b7ec3889bc 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -306,10 +306,10 @@ typedef enum eSpaceOutliner_Filter {
   SO_FILTER_NO_OB_OTHERS = (1 << 11),
 
   SO_FILTER_OB_STATE_SELECTABLE = (1 << 12), /* Not set via DNA. */
-  SO_FILTER_OB_STATE_VISIBLE = (1 << 13),  /* Not set via DNA. */
-  SO_FILTER_OB_STATE_HIDDEN = (1 << 14),   /* Not set via DNA. */
-  SO_FILTER_OB_STATE_SELECTED = (1 << 15), /* Not set via DNA. */
-  SO_FILTER_OB_STATE_ACTIVE = (1 << 16),   /* Not set via DNA. */
+  SO_FILTER_OB_STATE_VISIBLE = (1 << 13),    /* Not set via DNA. */
+  SO_FILTER_OB_STATE_HIDDEN = (1 << 14),     /* Not set via DNA. */
+  SO_FILTER_OB_STATE_SELECTED = (1 << 15),   /* Not set via DNA. */
+  SO_FILTER_OB_STATE_ACTIVE = (1 << 16),     /* Not set via DNA. */
   SO_FILTER_NO_COLLECTION = (1 << 17),
 
   SO_FILTER_ID_TYPE = (1 << 18),
diff --git a/source/blender/render/intern/source/render_texture.c b/source/blender/render/intern/source/render_texture.c
index 6626feddf5b..5a943296acb 100644
--- a/source/blender/render/intern/source/render_texture.c
+++ b/source/blender/render/intern/source/render_texture.c
@@ -656,42 +656,42 @@ static int mg_HTerrainTex(const Tex *tex, const float texvec[3], TexResult *texr
   int rv = TEX_INT;
 
   texres->tin = tex->ns_outscale * BLI_mg_HeteroTerrain(texvec[0],
-                                                    texvec[1],
-                                                    texvec[2],
-                                                    tex->mg_H,
-                                                    tex->mg_lacunarity,
-                                                    tex->mg_octaves,
-                                                    tex->mg_offset,
-                                                    tex->noisebasis);
+                                                        texvec[1],
+                                                        texvec[2],
+                                                        tex->mg_H,
+                                                        tex->mg_lacunarity,
+                                                        tex->mg_octaves,
+                                                        tex->mg_offset,
+                                                        tex->noisebasis);
 
   if (texres->nor != NULL) {
     float offs = tex->nabla / tex->noisesize; /* also scaling of texvec */
 
     /* calculate bumpnormal */
     texres->nor[0] = tex->ns_outscale * BLI_mg_HeteroTerrain(texvec[0] + offs,
-                                                         texvec[1],
-                                                         texvec[2],
-                                                         tex->mg_H,
-                                                         tex->mg_lacunarity,
-                                                         tex->mg_octaves,
-                                                         tex->mg_offset,
-                                                         tex->noisebasis);
+                                                             texvec[1],
+      

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list