diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-03 07:20:27 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-03 07:25:02 +0300 |
commit | 61c288cee53aabaaf9f9ec69ccf1ffa9053895d2 (patch) | |
tree | e274fd9d65a0ffc345363c68fc249c88bbd8406d /source/blender/editors/animation/anim_markers.c | |
parent | ef431a87057d366afe589a1c7b16e83809191ca6 (diff) |
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.
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r-- | source/blender/editors/animation/anim_markers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |