[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33771] trunk/blender/source/blender/ editors/space_time/space_time.c: Pointcache frame markers in timeline look a bit nicer if they are aligned exactly on frames .

Janne Karhu jhkarh at gmail.com
Sat Dec 18 22:19:56 CET 2010


Revision: 33771
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33771
Author:   jhk
Date:     2010-12-18 22:19:55 +0100 (Sat, 18 Dec 2010)

Log Message:
-----------
Pointcache frame markers in timeline look a bit nicer if they are aligned exactly on frames.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_time/space_time.c

Modified: trunk/blender/source/blender/editors/space_time/space_time.c
===================================================================
--- trunk/blender/source/blender/editors/space_time/space_time.c	2010-12-18 21:16:37 UTC (rev 33770)
+++ trunk/blender/source/blender/editors/space_time/space_time.c	2010-12-18 21:19:55 UTC (rev 33771)
@@ -220,19 +220,19 @@
 		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;
 			}





More information about the Bf-blender-cvs mailing list