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>2015-07-25 06:26:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-25 06:26:20 +0300
commite301cf3ec2cb8caa544032238cf7a1e7bb5e2523 (patch)
tree8f564a932b1e739eeadd395f69499bf548ed7dfe /source/blender/editors/animation/anim_draw.c
parent2a286829f7fa19ffceb6ec6be095ee11305353e3 (diff)
Cleanup: double-promotion warnings
Diffstat (limited to 'source/blender/editors/animation/anim_draw.c')
-rw-r--r--source/blender/editors/animation/anim_draw.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index 498086047ad..33a5447698a 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -494,11 +494,14 @@ void ANIM_center_frame(struct bContext *C, int smooth_viewtx)
switch (U.view_frame_type) {
case ZOOM_FRAME_MODE_SECONDS:
- newrct.xmax = scene->r.cfra + U.view_frame_seconds * FPS + 1;
- newrct.xmin = scene->r.cfra - U.view_frame_seconds * FPS - 1;
+ {
+ const float fps = FPS;
+ newrct.xmax = scene->r.cfra + U.view_frame_seconds * fps + 1;
+ newrct.xmin = scene->r.cfra - U.view_frame_seconds * fps - 1;
newrct.ymax = ar->v2d.cur.ymax;
newrct.ymin = ar->v2d.cur.ymin;
break;
+ }
/* hardest case of all, look for all keyframes around frame and display those */
case ZOOM_FRAME_MODE_KEYFRAMES: