diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_select_pick.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_select_pick.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/gpu/intern/gpu_select_pick.c b/source/blender/gpu/intern/gpu_select_pick.c index 3025b5d66da..0f6f29fab40 100644 --- a/source/blender/gpu/intern/gpu_select_pick.c +++ b/source/blender/gpu/intern/gpu_select_pick.c @@ -204,12 +204,11 @@ static int depth_id_cmp(const void *v1, const void *v2) if (d1->id < d2->id) { return -1; } - else if (d1->id > d2->id) { + if (d1->id > d2->id) { return 1; } - else { - return 0; - } + + return 0; } static int depth_cmp(const void *v1, const void *v2) @@ -218,12 +217,11 @@ static int depth_cmp(const void *v1, const void *v2) if (d1->depth < d2->depth) { return -1; } - else if (d1->depth > d2->depth) { + if (d1->depth > d2->depth) { return 1; } - else { - return 0; - } + + return 0; } /* depth sorting */ |