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:
authorJanne Karhu <jhkarh@gmail.com>2010-12-19 00:19:55 +0300
committerJanne Karhu <jhkarh@gmail.com>2010-12-19 00:19:55 +0300
commit555427765de0921451477e004600aa816b2078ea (patch)
tree13b70c19041d76258f4a021c79ebdbbc04890abd /source/blender/editors/space_time/space_time.c
parentd920bf50725dcfab52b96f8cb096c17d7590c589 (diff)
Pointcache frame markers in timeline look a bit nicer if they are aligned exactly on frames.
Diffstat (limited to 'source/blender/editors/space_time/space_time.c')
-rw-r--r--source/blender/editors/space_time/space_time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c
index 1de7704c3f0..c998d09747d 100644
--- a/source/blender/editors/space_time/space_time.c
+++ b/source/blender/editors/space_time/space_time.c
@@ -220,19 +220,19 @@ static void time_cache_refresh(const bContext *C, SpaceTime *stime)
for (i=sta; i<=end; i++) {
if (pid->cache->cached_frames[i-sta]) {
- fp[0] = (float)i;
+ fp[0] = (float)i-0.5f;
fp[1] = 0.0;
fp+=2;
- fp[0] = (float)i;
+ fp[0] = (float)i-0.5f;
fp[1] = 1.0;
fp+=2;
- fp[0] = (float)(i+1);
+ fp[0] = (float)i+0.5f;
fp[1] = 1.0;
fp+=2;
- fp[0] = (float)(i+1);
+ fp[0] = (float)i+0.5f;
fp[1] = 0.0;
fp+=2;
}