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
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-06-14 18:32:15 +0300
committerSergey Sharybin <sergey@blender.org>2022-06-15 13:37:31 +0300
commitc1a231f40bbd30067600b4972869a64be75482e1 (patch)
treefee5f76ff5bbcf5c90bf8ff2f65f6e20edb7deb4 /source
parent412c4688939f94e2e40d6c517ec9db7fd0cbb8e4 (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')
-rw-r--r--source/blender/blenkernel/intern/tracking.c4
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;
}