[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11524] trunk/blender/source/blender/src/ editipo.c: Bugfix:

Joshua Leung aligorith at gmail.com
Thu Aug 9 11:09:25 CEST 2007


Revision: 11524
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11524
Author:   aligorith
Date:     2007-08-09 11:09:25 +0200 (Thu, 09 Aug 2007)

Log Message:
-----------
Bugfix:

Made inserting new keyframes use a coarser threshold for determining when to replace existing keyframes with new ones. Now, it shouldn't create so many keyframes stacked on top of each other, but yet still keep some bizzare cases working.

Modified Paths:
--------------
    trunk/blender/source/blender/src/editipo.c

Modified: trunk/blender/source/blender/src/editipo.c
===================================================================
--- trunk/blender/source/blender/src/editipo.c	2007-08-09 01:07:27 UTC (rev 11523)
+++ trunk/blender/source/blender/src/editipo.c	2007-08-09 09:09:25 UTC (rev 11524)
@@ -1925,8 +1925,8 @@
 		bezt= icu->bezt;
 		for(a=0; a<=icu->totvert; a++, bezt++) {
 			
-			/* no double points */
-			if(a<icu->totvert && IS_EQ(bezt->vec[1][0], x)) {
+			/* no double points - threshold to determine this should be good enough */
+			if(a<icu->totvert && IS_EQT(bezt->vec[1][0], x, 0.00001)) {
 				*(bezt)= beztr;
 				break;
 			}





More information about the Bf-blender-cvs mailing list