Commit: dfe01628b02725471a11e3afc825063b93ab392f
Author: Campbell Barton
Date: Fri Sep 24 21:10:01 2021 +1000
Branches: master
https://developer.blender.org/rBdfe01628b02725471a11e3afc825063b93ab392f
Cleanup: old-style-declaration warning
===================================================================
M source/blender/nodes/shader/nodes/node_shader_hair_info.c
===================================================================
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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs