From e401fef6b7a3e6d5301a7a4e21e66f3fb53f9982 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 19 Oct 2013 13:39:27 +0000 Subject: Fix [#37146] Dopesheet / Graph editor, select columns between markers doesn't appear to work. Init min/max values were just switched... --- source/blender/editors/animation/anim_markers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c index 34246427b7e..8a9f4559140 100644 --- a/source/blender/editors/animation/anim_markers.c +++ b/source/blender/editors/animation/anim_markers.c @@ -211,8 +211,9 @@ void ED_markers_get_minmax(ListBase *markers, short sel, float *first, float *la TimeMarker *fm = markers->first; TimeMarker *lm = markers->last; - min = (float)fm->frame; - max = (float)lm->frame; + /* Store last marker in min, and first marker in max, so that later real value calc actually works! [#37146]. */ + min = (float)lm->frame; + max = (float)fm->frame; } else { *first = 0.0f; -- cgit v1.2.3