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-01-14 12:30:04 +0300
committerJoshua Leung <aligorith@gmail.com>2007-01-14 12:30:04 +0300
commit444246d016e3be6d943707f5a01db20040c35afa (patch)
treeafdd78b9b598d7526a4706ab42b1250767b5395d /source/blender/blenkernel/BKE_utildefines.h
parent1807fb24845d65946211e2086a0f2a1b743f943f (diff)
== IPO Cleaning ==
Rewrote the core-function responsible for ipo-cleaning. Now, it is in a less wacko form. What is still not done is the conversion of a bunch of points describing an arc to an arc defined by the handles of the keyframes on either side of the arc. That will have to wait for the next development cycle. This rewrite fixes two big bugs with the code: * All but first curve got hidden aften cleaning * Cleaning a curve with only two verts resulted in only one vert, even though the values were not the same.
Diffstat (limited to 'source/blender/blenkernel/BKE_utildefines.h')
-rw-r--r--source/blender/blenkernel/BKE_utildefines.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_utildefines.h b/source/blender/blenkernel/BKE_utildefines.h
index 232a2a2cd9e..81dd2807812 100644
--- a/source/blender/blenkernel/BKE_utildefines.h
+++ b/source/blender/blenkernel/BKE_utildefines.h
@@ -115,6 +115,8 @@
#define IS_EQ(a,b) ((fabs((double)(a)-(b)) >= (double) FLT_EPSILON) ? 0 : 1)
+#define IS_EQT(a, b, c) ((a > b)? (((a-b) <= c)? 1:0) : ((((b-a) <= c)? 1:0)))
+#define IN_RANGE(a, b, c) ((b < c)? ((b<a && a<c)? 1:0) : ((c<a && a<b)? 1:0))
/* this weirdo pops up in two places ... */
#if !defined(WIN32) && !defined(__BeOS)