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 <ideasman42@gmail.com>2016-04-29 21:04:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-29 21:10:34 +0300
commitac163447f86f95ec6136991d7df3aaaefdd55fae (patch)
tree883c34732ccd29fd9ade99aa98bca6d5fb43d966 /source/blender/editors/space_time
parent461604c0d5ea58bb44a2fac0a3637f5b959aac26 (diff)
Cleanup: warnings. spelling
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/time_ops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_time/time_ops.c b/source/blender/editors/space_time/time_ops.c
index a7f549b65ae..7dd45327352 100644
--- a/source/blender/editors/space_time/time_ops.c
+++ b/source/blender/editors/space_time/time_ops.c
@@ -141,18 +141,18 @@ static int time_view_all_exec(bContext *C, wmOperator *UNUSED(op))
{
Scene *scene = CTX_data_scene(C);
ARegion *ar = CTX_wm_region(C);
- View2D *v2d = (ar) ? &ar->v2d : NULL;
- float extra;
-
+
if (ELEM(NULL, scene, ar))
return OPERATOR_CANCELLED;
-
+
+ View2D *v2d = &ar->v2d;
+
/* set extents of view to start/end frames (Preview Range too) */
v2d->cur.xmin = (float)PSFRA;
v2d->cur.xmax = (float)PEFRA;
/* we need an extra "buffer" factor on either side so that the endpoints are visible */
- extra = 0.01f * BLI_rctf_size_x(&v2d->cur);
+ const float extra = 0.01f * BLI_rctf_size_x(&v2d->cur);
v2d->cur.xmin -= extra;
v2d->cur.xmax += extra;