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:
authorTon Roosendaal <ton@blender.org>2005-08-27 21:04:29 +0400
committerTon Roosendaal <ton@blender.org>2005-08-27 21:04:29 +0400
commiteb1f65768a742fce55dd755e9c51d4be2f73b5bc (patch)
tree1dff3d1bbd979d53620a5bade793a580d3486c49 /source/blender/makesdna/DNA_constraint_types.h
parent8f5bff6051025bbd4d5e0a127f7fef09ef226c1a (diff)
IK work-in-progress commit;
- Removed old convention that only allowed one "IK" connection for Bones in a joint. Was highly frustrating for editing trees or branches. In a next commit, there will be a different method to define IK target and IK root, so this option actually will become "Connect Bone" or so. - the IK group name is gone, now is just an option "Tree IK". When IK chains share a root they'll form a tree. Todo is preventing conflicts here (will be for editor to define IK Root) - Adding new IK constraint with CTRL+I activates Constraint
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index e8895e942d4..9f05532ac60 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -67,9 +67,8 @@ typedef struct bKinematicConstraint{
short flag; /* Like IK to Tip */
char subtarget[32]; /* String to specify sub-object target */
- char group[32]; /* Name of group */
- float weight; /* Weight of goal in IK group */
- float orientweight;
+ float weight; /* Weight of goal in IK tree */
+ float orientweight; /* Amount of rotation a target applies on chain */
} bKinematicConstraint;
typedef struct bTrackToConstraint{
@@ -214,8 +213,9 @@ typedef struct bStretchToConstraint{
#define PLANE_Z 0x02
/* bKinematicConstraint->flag */
-#define CONSTRAINT_IK_TIP 1
-#define KINEMATIC_ORIENTATION 2
+#define CONSTRAINT_IK_TIP 1
+#define CONSTRAINT_IK_ROT 2
+#define CONSTRAINT_IK_TREE 4
#endif