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:
authorRoland Hess <me@harkyman.com>2006-09-22 19:57:58 +0400
committerRoland Hess <me@harkyman.com>2006-09-22 19:57:58 +0400
commit4725ca6c021d4234ca069ab789e962f97008ccf9 (patch)
tree89da7f983ea024797dfef2e77311036a8842db35 /source/blender/makesdna/DNA_constraint_types.h
parent3d3b64768db193d1f8234b14bc089e8508d89d16 (diff)
This commit adds local target rotation support to the floor constraint,
making it much more useful. Requested and taunted for frequently by Plumiferos folks. Click on "Use Rot" to take target object rotations into account. Good for using rotated empties, etc., as a sloped floor.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index ce351baa4f3..dcc4b88680d 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -99,8 +99,7 @@ typedef struct bMinMaxConstraint{
Object *tar;
int minmaxflag;
float offset;
- short sticky;
- short stuck;
+ int flag;
float cache[3];
char subtarget[32];
} bMinMaxConstraint;
@@ -278,6 +277,11 @@ typedef struct bSizeLimitConstraint{
#define CONSTRAINT_IK_AUTO 4
#define CONSTRAINT_IK_TEMP 8
+/* MinMax (floor) flags */
+#define MINMAX_STICKY 0x01
+#define MINMAX_STUCK 0x02
+#define MINMAX_USEROT 0x04
+
/* transform limiting constraints -> flag */
#define LIMIT_XMIN 0x01
#define LIMIT_XMAX 0x02