diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-06-14 18:32:15 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-06-15 13:37:31 +0300 |
commit | c1a231f40bbd30067600b4972869a64be75482e1 (patch) | |
tree | fee5f76ff5bbcf5c90bf8ff2f65f6e20edb7deb4 /source/blender/blenkernel/intern | |
parent | 412c4688939f94e2e40d6c517ec9db7fd0cbb8e4 (diff) |
Clip editor: Sort tracks alphabetically when they have matched error
Is nice to ensure order of tracks when their error is the same or
is not known yet (the clip was not solved yet).
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index f9d3a44e5cb..c33d514152d 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -2904,6 +2904,10 @@ static int channels_average_error_sort(const void *a, const void *b) return 1; } + if (channel_a->track->error == channel_b->track->error) { + return channels_alpha_sort(a, b); + } + return 0; } |