From 2127e62c9b2d05351013ceb5996cddc38925b457 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 12 Jun 2012 06:22:23 +0000 Subject: "Fix" for [#30704] Action Constraint mapping bug Feature request rather than a real bug: allow constrained bone to use "object" part of the linked action, in addition to "same-named bone" part. --- source/blender/makesdna/DNA_constraint_types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index 59d8e81de39..aae167d05c6 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -247,7 +247,7 @@ typedef struct bActionConstraint { int end; float min; float max; - int pad; + int flag; struct bAction *act; char subtarget[64]; /* MAX_ID_NAME-2 */ } bActionConstraint; @@ -561,6 +561,12 @@ typedef enum eSameVolume_Modes { SAMEVOL_Z } eSameVolume_Modes; +/* bActionConstraint.flag + * WARNING: bitwise! */ +typedef enum eAction_flags { + BONE_USE_OBJECT_ACTION = 1 << 0, /* Bones use "object" part of target action, instead of "same bone name" part. */ +} eAction_flags; + /* Locked-Axis Values (Locked Track) */ typedef enum eLockAxis_Modes { LOCK_X = 0, -- cgit v1.2.3