From 61c288cee53aabaaf9f9ec69ccf1ffa9053895d2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Mar 2022 15:20:27 +1100 Subject: Fix timeline marker click-drag arbitrary deselection The logic to cycle selected markers wasn't cycling back to the beginning of the list. The marker after the selected marker at the cursor frame was also used to check if a selection existed, causing dragging to transform all selected markers to de-select all when when dragging the last marker. --- source/blender/editors/animation/anim_markers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 95125516fe8..c8f3501fbce 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -1146,7 +1146,7 @@ static int select_timeline_marker_frame(ListBase *markers, for (marker = markers->first; marker; marker = marker->next) { if (marker->frame == frame) { if (marker->flag & SELECT) { - marker_selected = marker->next; + marker_selected = marker->next ? marker->next : markers->first; break; } } -- cgit v1.2.3