diff options
author | Martin Poirier <theeth@yahoo.com> | 2003-10-21 17:22:07 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2003-10-21 17:22:07 +0400 |
commit | 4efdabfbbc3f4f79328241e8b59002d869ae247a (patch) | |
tree | 5d3dae23f261a779e552520c4224a147090dabe4 /source/blender/include | |
parent | 2da9cb5db284e16d95ff7e65dda9174c6b668950 (diff) |
Constraint stuff from tuhopuu including (but probably not limited too):
Axis options for TrackTo
LockTrack
FollowPath
Auto creation of TrackTo constraint from Ctrl-T (old track still an option)
Auto creation of FollowPath when parenting to path (Normal parent still an option)
Backward compatibility stuff to convert the per object axis settings to per constraint when a Track constraint is present.
Function to convert old track to constraint (commented out)
Revamped the constraints interface with Matt's work from tuhopuu and the stuff we were discussing earlier.
--------------------
For coders:
unique_constraint_name and *new_constraint_data moved to the kernel (constraint.c)
new Projf function in arithb gives the projection of a vector on another vector
add_new_constraint now takes a constraint type (int) parameter
add_constraint_to_object(bConstraint *con, Object *ob) to link a constraint to an object
add_constraint_to_client(bConstraint *con) to link constraint to current client (object or bone)
add_influence_key_to_constraint (bConstraint *con) to (eventually) add a keyframe to the influence IPO of a constraint
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BIF_editconstraint.h | 7 | ||||
-rw-r--r-- | source/blender/include/butspace.h | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/source/blender/include/BIF_editconstraint.h b/source/blender/include/BIF_editconstraint.h index 5d6d38fd529..f28b07797f0 100644 --- a/source/blender/include/BIF_editconstraint.h +++ b/source/blender/include/BIF_editconstraint.h @@ -48,13 +48,14 @@ typedef struct ConstraintElement{ } ConstraintElement; struct bConstraintChannel *add_new_constraint_channel(const char *name); -struct bConstraint * add_new_constraint(void); +struct bConstraint * add_new_constraint(int type); +void add_influence_key_to_constraint (struct bConstraint *con); +void add_constraint_to_object(struct bConstraint *con, struct Object *ob); +void add_constraint_to_client(struct bConstraint *con); struct ListBase *get_constraint_client_channels (int forcevalid); struct ListBase *get_constraint_client(char *name, short *clienttype, void** clientdata); int test_constraints (struct Object *owner, const char *substring, int disable); void test_scene_constraints (void); -void unique_constraint_name (struct bConstraint *con, struct ListBase *list); -void *new_constraint_data (short type); /* void unique_constraint_name (struct bConstraint *con, struct ListBase *list); */ diff --git a/source/blender/include/butspace.h b/source/blender/include/butspace.h index 7d708b36279..4b41667bc43 100644 --- a/source/blender/include/butspace.h +++ b/source/blender/include/butspace.h @@ -485,12 +485,19 @@ enum B_SOUND_BUTTONS { #define B_CONSTRAINTBUTS 3300 enum { B_CONSTRAINT_REDRAW = 3201, - B_CONSTRAINT_ADD, B_CONSTRAINT_DEL, B_CONSTRAINT_TEST, B_CONSTRAINT_CHANGETYPE, B_CONSTRAINT_CHANGENAME, - B_CONSTRAINT_CHANGETARGET + B_CONSTRAINT_CHANGETARGET, + B_CONSTRAINT_ADD_NULL, + B_CONSTRAINT_ADD_KINEMATIC, + B_CONSTRAINT_ADD_TRACKTO, + B_CONSTRAINT_ADD_ROTLIKE, + B_CONSTRAINT_ADD_LOCLIKE, + B_CONSTRAINT_ADD_ACTION, + B_CONSTRAINT_ADD_LOCKTRACK, + B_CONSTRAINT_ADD_FOLLOWPATH }; /* *********************** */ |