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>2009-09-08 13:41:15 +0400
committerJoshua Leung <aligorith@gmail.com>2009-09-08 13:41:15 +0400
commit5ce8b1f70476626aae9a5a818398cf9e55a679af (patch)
tree61d192e011150860a2fa91c2a558c4204c31ed38 /source/blender/makesdna/DNA_constraint_types.h
parentb9816c98bc0ffaa4992362aca0239c0f6832eccd (diff)
2.5 - FollowPath Constraint + File Loading Bugfix
* Added a new option ('Fixed Position') for Follow Path constraint which allows you to constrain an object/bone to some fixed position along the curve. Unlike the default mode of operation, this doesn't depend on time unless you explicitly animate the offset percentage parameter associated with this. * Made old (pre 2.5) files saved with armatures in pose mode load in pose mode again.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index 6fab633b192..a92dc836197 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -64,7 +64,8 @@ typedef struct bConstraint {
float enforce; /* Amount of influence exherted by constraint (0.0-1.0) */
float headtail; /* Point along subtarget bone where the actual target is. 0=head (default for all), 1=tail*/
int pad;
- struct Ipo *ipo; /* local influence ipo or driver */
+
+ struct Ipo *ipo; /* local influence ipo or driver */ // XXX depreceated for 2.5... old animation system hack
} bConstraint;
@@ -449,6 +450,10 @@ typedef enum B_CONSTRAINTCHANNEL_FLAG {
#define TRACK_nY 0x04
#define TRACK_nZ 0x05
+/* FollowPath flags */
+#define FOLLOWPATH_FOLLOW 0x01
+#define FOLLOWPATH_STATIC 0x02
+
/* bTrackToConstraint->flags */
#define TARGET_Z_UP 0x01