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>2021-09-24 14:10:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-24 14:10:01 +0300
commitdfe01628b02725471a11e3afc825063b93ab392f (patch)
treebfda44501554d25a330014358481cd1d68cfde19
parente8c6e32348fcd898b2b06e2af0c92c477739992d (diff)
Cleanup: old-style-declaration warning
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_hair_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_hair_info.c b/source/blender/nodes/shader/nodes/node_shader_hair_info.c
index 559c5cf7ae8..c721fb9c77a 100644
--- a/source/blender/nodes/shader/nodes/node_shader_hair_info.c
+++ b/source/blender/nodes/shader/nodes/node_shader_hair_info.c
@@ -37,7 +37,7 @@ static int node_shader_gpu_hair_info(GPUMaterial *mat,
GPUNodeStack *out)
{
/* Length: don't request length if not needed. */
- const static float zero = 0;
+ static const float zero = 0;
GPUNodeLink *length_link = (!out[2].hasoutput) ? GPU_constant(&zero) :
GPU_attribute(mat, CD_HAIRLENGTH, "");
return GPU_stack_link(mat, node, "node_hair_info", in, out, length_link);