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-07-24 15:36:05 +0400
committerTon Roosendaal <ton@blender.org>2005-07-24 15:36:05 +0400
commit4d273d8d5b9eb471f82ee49819905eedb68d6a4f (patch)
treec27fb4ba1f2dff92f75e998d8c03dd9ad627053a /source/blender/makesdna/DNA_constraint_types.h
parent1d27a7676b261cd5eecde5828a396398376f6af1 (diff)
Armature-Pose IK goodies!
- Added option to the IK buttons, to have it use the 'tip' as end of the IK chain. I never really understood this old convention (IK didn't work on the Bone itself). Old files still will read OK though. But I made the "To Tip" a default when adding new IK constraints. - Hotkey CTRL+I: add IK, with option to have it adding an Empty target, or use a selected Bone as target. With the new non-modal PoseMode, it gives instant access to playing with the IK chain. - Hotkey ALT+I: clears IK, on all selected Bones - Hotkey ALT+C: clears Constraints on all selected Bones (incl IK)
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index 2646f803bf9..cfb180cf33d 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -67,13 +67,11 @@ typedef struct bConstraint{
typedef struct bKinematicConstraint{
Object *tar;
float tolerance; /* Acceptable distance from target */
- int iterations; /* Maximum number of iterations to try */
+ short iterations; /* Maximum number of iterations to try */
+ short flag; /* Like IK to Tip */
char subtarget[32]; /* String to specify sub-object target */
- float cacheeff[3]; /* Target location cache */
- int reserved1;
- float cachemat[4][4]; /* Result cache */
} bKinematicConstraint;
typedef struct bTrackToConstraint{
@@ -219,5 +217,8 @@ typedef struct bStretchToConstraint{
#define PLANE_Y 0x00000001
#define PLANE_Z 0x00000002
+/* bKinematicConstraint->flag */
+#define CONSTRAINT_IK_TIP 1
+
#endif