diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-07 14:52:53 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-07 14:55:03 +0300 |
commit | 331f8500569df9b3b2aa776c5bcaad7b99c57295 (patch) | |
tree | 93547846177ff3415f9564ca54cb8f13433755cf /source/blender/blenkernel/intern/studiolight.c | |
parent | 11abeae99fdbfc8f047c4a3c1d2b9b8c47883516 (diff) |
Cleanup: redundant parenthesis
Diffstat (limited to 'source/blender/blenkernel/intern/studiolight.c')
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index 9610443ef70..daad983f0bf 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -217,8 +217,8 @@ static void studiolight_load_solid_light(StudioLight *sl) #undef READ_IVAL #undef READ_FVAL -#define WRITE_FVAL(str, id, val) (BLI_dynstr_appendf(str, id " %f\n", val)) -#define WRITE_IVAL(str, id, val) (BLI_dynstr_appendf(str, id " %d\n", val)) +#define WRITE_FVAL(str, id, val) BLI_dynstr_appendf(str, id " %f\n", val) +#define WRITE_IVAL(str, id, val) BLI_dynstr_appendf(str, id " %d\n", val) #define WRITE_VEC3(str, id, val) \ do { \ @@ -273,7 +273,7 @@ static void direction_to_equirect(float r[2], const float dir[3]) static void equirect_to_direction(float r[3], float u, float v) { - float phi = (-(M_PI * 2)) * u + M_PI; + float phi = -(M_PI * 2) * u + M_PI; float theta = -M_PI * v + M_PI; float sin_theta = sinf(theta); r[0] = sin_theta * cosf(phi); |