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:
authorMartin Poirier <theeth@yahoo.com>2005-09-07 04:11:39 +0400
committerMartin Poirier <theeth@yahoo.com>2005-09-07 04:11:39 +0400
commit1dba65e296276ed78222f19a127c90773a1f0416 (patch)
tree577dba12dfbd157bd0628a3a9fc62db3c226c566 /source/blender/makesdna/DNA_constraint_types.h
parentc1155c6a4d8b6fd9b7872bc5aaa86af771022c27 (diff)
Roland Hess' Floor Constraint patch: https://projects.blender.org/tracker/?func=detail&aid=2993&group_id=9&atid=127
Minor modifications to simplify the code in evaluate_constraint. The "Stick" feature will need more work as it gives bad results when skipping frames, jumping around on the timeline and when going backward in time. Suggestion: Would be nice if it could use the local space too, not just global space planes.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index 70e1bc3f3bc..3b30613015a 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -93,6 +93,16 @@ typedef struct bLocateLikeConstraint{
char subtarget[32];
} bLocateLikeConstraint;
+typedef struct bMinMaxConstraint{
+ Object *tar;
+ int minmaxflag;
+ float offset;
+ short sticky;
+ short stuck;
+ float cache[3];
+ char subtarget[32];
+} bMinMaxConstraint;
+
typedef struct bActionConstraint{
Object *tar;
short type;
@@ -168,6 +178,7 @@ typedef struct bStretchToConstraint{
#define CONSTRAINT_TYPE_LOCKTRACK 13 /* New Tracking constraint that locks an axis in place - theeth */
#define CONSTRAINT_TYPE_DISTANCELIMIT 14
#define CONSTRAINT_TYPE_STRETCHTO 15 /* claiming this to be mine :) is in tuhopuu bjornmose */
+#define CONSTRAINT_TYPE_MINMAX 16 /* floor constraint */
/* bConstraint.flag */