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>2018-04-21 21:42:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-21 21:42:27 +0300
commit122d0d15047c1d84995262b1dd6488b9cb278257 (patch)
tree6c5652b04c42f81bf8dcf705ad49a2180ede59c3 /source/blender/blenlib
parent112540da62cefbf8774a20043cf981664bc2d028 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_color.c14
1 files changed, 7 insertions, 7 deletions
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];