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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-03-28 18:13:21 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-03-28 18:15:30 +0400
commite9d733a8bd9ebf803d4afac419670974792a3c0d (patch)
tree0ad2cd2c25d574f65d160ec4d8956aa626631dff /source/blender/editors/space_time/time_ops.c
parent1af69b6df3c538bd329201520abaa5058a1ff0ca (diff)
Fix T39484: Time line: highlighted area for frame range one frame too short.
Just using same principle as the one already used for the 'cache bar': add -0.5/+0.5 offsets to start/end (also edited 'view all' op to match this).
Diffstat (limited to 'source/blender/editors/space_time/time_ops.c')
-rw-r--r--source/blender/editors/space_time/time_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_time/time_ops.c b/source/blender/editors/space_time/time_ops.c
index e2e861fda38..0de9c296d3e 100644
--- a/source/blender/editors/space_time/time_ops.c
+++ b/source/blender/editors/space_time/time_ops.c
@@ -147,8 +147,8 @@ static int time_view_all_exec(bContext *C, wmOperator *UNUSED(op))
return OPERATOR_CANCELLED;
/* set extents of view to start/end frames (Preview Range too) */
- v2d->cur.xmin = (float)PSFRA;
- v2d->cur.xmax = (float)PEFRA;
+ v2d->cur.xmin = ((float)PSFRA) - 0.5f;
+ v2d->cur.xmax = ((float)PEFRA) + 0.5f;
/* we need an extra "buffer" factor on either side so that the endpoints are visible */
extra = 0.01f * BLI_rctf_size_x(&v2d->cur);