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:
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_beautify.c')
-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)