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:
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r--source/blender/editors/animation/anim_markers.c5
1 files changed, 3 insertions, 2 deletions
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;