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 <campbell@blender.org>2022-05-05 10:32:57 +0300
committerCampbell Barton <campbell@blender.org>2022-05-05 10:33:43 +0300
commiteb837ba17eb5bc53de98972ab1f0b9aa30658e19 (patch)
tree4cd67ec9ef1aa00f0e4a3bb0622e1730df00c41e /intern/cycles/util
parent6513ce258f734f50fa152a8f88240368e176389b (diff)
Cleanup: format
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/color.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/color.h b/intern/cycles/util/color.h
index a390b49cf7b..795c3754976 100644
--- a/intern/cycles/util/color.h
+++ b/intern/cycles/util/color.h
@@ -162,7 +162,8 @@ ccl_device float3 rgb_to_hsl(float3 rgb)
if (cmax == cmin) {
h = s = 0.0f; /* achromatic */
- } else {
+ }
+ else {
float cdelta = cmax - cmin;
s = l > 0.5f ? cdelta / (2.0f - cmax - cmin) : cdelta / (cmax + cmin);
if (cmax == rgb.x) {