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
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-03 07:20:27 +0300
committerCampbell Barton <campbell@blender.org>2022-03-03 07:25:02 +0300
commit61c288cee53aabaaf9f9ec69ccf1ffa9053895d2 (patch)
treee274fd9d65a0ffc345363c68fc249c88bbd8406d /source/blender/editors/animation
parentef431a87057d366afe589a1c7b16e83809191ca6 (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')
-rw-r--r--source/blender/editors/animation/anim_markers.c2
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;
}
}