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-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/bmesh/tools
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r--source/blender/bmesh/tools/bmesh_beautify.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/source/blender/bmesh/tools/bmesh_beautify.c b/source/blender/bmesh/tools/bmesh_beautify.c
index 00368364616..5d511374989 100644
--- a/source/blender/bmesh/tools/bmesh_beautify.c
+++ b/source/blender/bmesh/tools/bmesh_beautify.c
@@ -66,24 +66,33 @@ static int erot_gsetutil_cmp(const void *a, const void *b)
{
const EdRotState *e_state_a = (const EdRotState *)a;
const EdRotState *e_state_b = (const EdRotState *)b;
- if (e_state_a->v1 < e_state_b->v1)
+ if (e_state_a->v1 < e_state_b->v1) {
return -1;
- else if (e_state_a->v1 > e_state_b->v1)
+ }
+ else if (e_state_a->v1 > e_state_b->v1) {
return 1;
- else if (e_state_a->v2 < e_state_b->v2)
+ }
+ else if (e_state_a->v2 < e_state_b->v2) {
return -1;
- else if (e_state_a->v2 > e_state_b->v2)
+ }
+ else if (e_state_a->v2 > e_state_b->v2) {
return 1;
- else if (e_state_a->f1 < e_state_b->f1)
+ }
+ else if (e_state_a->f1 < e_state_b->f1) {
return -1;
- else if (e_state_a->f1 > e_state_b->f1)
+ }
+ else if (e_state_a->f1 > e_state_b->f1) {
return 1;
- else if (e_state_a->f2 < e_state_b->f2)
+ }
+ else if (e_state_a->f2 < e_state_b->f2) {
return -1;
- else if (e_state_a->f2 > e_state_b->f2)
+ }
+ else if (e_state_a->f2 > e_state_b->f2) {
return 1;
- else
+ }
+ else {
return 0;
+ }
}
#endif
static GSet *erot_gset_new(void)