Commit: 2b9ca0f112ad41e9402d272cc0c691bd5e1c5956
Author: Jeroen Bakker
Date: Fri Sep 24 13:38:03 2021 +0200
Branches: master
https://developer.blender.org/rB2b9ca0f112ad41e9402d272cc0c691bd5e1c5956
Codestyle: Add brackets around body of if statements.
===================================================================
M source/blender/draw/intern/draw_hair.c
===================================================================
diff --git a/source/blender/draw/intern/draw_hair.c
b/source/blender/draw/intern/draw_hair.c
index 6a23eb8695e..5c7eb083fc9 100644
--- a/source/blender/draw/intern/draw_hair.c
+++ b/source/blender/draw/intern/draw_hair.c
@@ -316,8 +316,9 @@ DRWShadingGroup *DRW_shgroup_hair_create_sub(Object *object,
}
DRW_shgroup_uniform_texture(shgrp, "hairPointBuffer",
hair_cache->final[subdiv].proc_tex);
- if (hair_cache->length_tex)
+ if (hair_cache->length_tex) {
DRW_shgroup_uniform_texture(shgrp, "hairLen", hair_cache->length_tex);
+ }
DRW_shgroup_uniform_int(shgrp, "hairStrandsRes",
&hair_cache->final[subdiv].strands_res, 1);
DRW_shgroup_uniform_int_copy(shgrp, "hairThicknessRes", thickness_res);
DRW_shgroup_uniform_float_copy(shgrp, "hairRadShape", hair_rad_shape);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs