From 122d0d15047c1d84995262b1dd6488b9cb278257 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 21 Apr 2018 20:42:27 +0200 Subject: Cleanup: style --- source/blender/blenlib/intern/math_color.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/intern/math_color.c b/source/blender/blenlib/intern/math_color.c index 534abeb913d..3879a409675 100644 --- a/source/blender/blenlib/intern/math_color.c +++ b/source/blender/blenlib/intern/math_color.c @@ -693,22 +693,22 @@ static const float blackbody_table_b[6][4] = { static void blackbody_temperature_to_rgb(float rgb[3], float t) { - if(t >= 12000.0f) { + if (t >= 12000.0f) { rgb[0] = 0.826270103f; rgb[1] = 0.994478524f; rgb[2] = 1.56626022f; } - else if(t < 965.0f) { + else if (t < 965.0f) { rgb[0] = 4.70366907f; rgb[1] = 0.0f; rgb[2] = 0.0f; } else { - int i = (t >= 6365.0f)? 5: - (t >= 3315.0f)? 4: - (t >= 1902.0f)? 3: - (t >= 1449.0f)? 2: - (t >= 1167.0f)? 1: 0; + int i = (t >= 6365.0f) ? 5 : + (t >= 3315.0f) ? 4 : + (t >= 1902.0f) ? 3 : + (t >= 1449.0f) ? 2 : + (t >= 1167.0f) ? 1 : 0; const float *r = blackbody_table_r[i]; const float *g = blackbody_table_g[i]; -- cgit v1.2.3