From 4d273d8d5b9eb471f82ee49819905eedb68d6a4f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 24 Jul 2005 11:36:05 +0000 Subject: 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) --- source/blender/makesdna/DNA_constraint_types.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/blender/makesdna/DNA_constraint_types.h') 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 -- cgit v1.2.3