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>2019-03-27 05:16:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-27 05:17:30 +0300
commit9ba948a4859da3308033fa6dc54f74433d7e6a21 (patch)
tree0bd6e95eb59d9af03aa32d925c68e1cbebecc246 /source/blender/blenlib/intern/math_vector.c
parent337eb8c1de4c57c34520b467d79779153335eecb (diff)
Cleanup: style, use braces for blenlib
Diffstat (limited to 'source/blender/blenlib/intern/math_vector.c')
-rw-r--r--source/blender/blenlib/intern/math_vector.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c
index bf4cd702ea1..0aacfd6cde1 100644
--- a/source/blender/blenlib/intern/math_vector.c
+++ b/source/blender/blenlib/intern/math_vector.c
@@ -925,22 +925,22 @@ void print_vn(const char *str, const float v[], const int n)
void minmax_v3v3_v3(float min[3], float max[3], const float vec[3])
{
- if (min[0] > vec[0]) min[0] = vec[0];
- if (min[1] > vec[1]) min[1] = vec[1];
- if (min[2] > vec[2]) min[2] = vec[2];
+ if (min[0] > vec[0]) { min[0] = vec[0]; }
+ if (min[1] > vec[1]) { min[1] = vec[1]; }
+ if (min[2] > vec[2]) { min[2] = vec[2]; }
- if (max[0] < vec[0]) max[0] = vec[0];
- if (max[1] < vec[1]) max[1] = vec[1];
- if (max[2] < vec[2]) max[2] = vec[2];
+ if (max[0] < vec[0]) { max[0] = vec[0]; }
+ if (max[1] < vec[1]) { max[1] = vec[1]; }
+ if (max[2] < vec[2]) { max[2] = vec[2]; }
}
void minmax_v2v2_v2(float min[2], float max[2], const float vec[2])
{
- if (min[0] > vec[0]) min[0] = vec[0];
- if (min[1] > vec[1]) min[1] = vec[1];
+ if (min[0] > vec[0]) { min[0] = vec[0]; }
+ if (min[1] > vec[1]) { min[1] = vec[1]; }
- if (max[0] < vec[0]) max[0] = vec[0];
- if (max[1] < vec[1]) max[1] = vec[1];
+ if (max[0] < vec[0]) { max[0] = vec[0]; }
+ if (max[1] < vec[1]) { max[1] = vec[1]; }
}
void minmax_v3v3_v3_array(float r_min[3], float r_max[3], const float (*vec_arr)[3], int nbr)