From 3d6d570ac8fc55fa42441737d718f552c98238d2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 9 Dec 2023 19:23:08 +0100 Subject: [PATCH] fixed sorting global animation parts by draw order (which was confusing) --- src/anim.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/anim.c b/src/anim.c index 82cb8dd2..08abd668 100644 --- a/src/anim.c +++ b/src/anim.c @@ -360,10 +360,8 @@ static int compareGlobalAnimPartControlInfo(const void *obj1, const void *obj2) (struct GlobalAnimPartControlInfo *)obj2; int compare_result; - if (o1->control_info.draw_order != o2->control_info.draw_order) - compare_result = o1->control_info.draw_order - o2->control_info.draw_order; - else - compare_result = o1->nr - o2->nr; + // do not sort animations parts by draw order (as it would be confusing) + compare_result = o1->nr - o2->nr; return compare_result; } -- 2.34.1