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:
authorJoshua Leung <aligorith@gmail.com>2007-08-09 13:09:25 +0400
committerJoshua Leung <aligorith@gmail.com>2007-08-09 13:09:25 +0400
commitc66acd3c9a0a5214442b5f4cc3ccf070203b06fd (patch)
treea743ea2cc4eeb4853084a0a41adf01bebd60d0a2 /source/blender/src/editipo.c
parent9e32291a758395ad7c15819858e4fa5492b7c4a2 (diff)
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.
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r--source/blender/src/editipo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c
index fb16212391f..08078c551f7 100644
--- a/source/blender/src/editipo.c
+++ b/source/blender/src/editipo.c
@@ -1925,8 +1925,8 @@ void insert_vert_ipo(IpoCurve *icu, float x, float y)
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;
}