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:
authorMartin Poirier <theeth@yahoo.com>2006-02-19 20:42:20 +0300
committerMartin Poirier <theeth@yahoo.com>2006-02-19 20:42:20 +0300
commitda6b87abb116b6e2d76c1c40aaaffbf9e14f59c9 (patch)
treee8a77fbdf8cb0192015003329e72c9a27c49ad28 /source/blender/makesdna/DNA_constraint_types.h
parentc7b472a54ef434230bddafb23c6419de990a7acc (diff)
Path: [ #2789 ] Add a "copy size" constraint
At long last! This new constraint is pretty simple. Following in the footsteps of such giants as Copy Loc and Copy Rot, it lets you constrain the size of an object/bone to another object/bone, with per axis restrictions.
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index cf1c5101407..b7dcadd501c 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -105,6 +105,13 @@ typedef struct bMinMaxConstraint{
char subtarget[32];
} bMinMaxConstraint;
+typedef struct bSizeLikeConstraint{
+ Object *tar;
+ int flag;
+ int reserved1;
+ char subtarget[32];
+} bSizeLikeConstraint;
+
typedef struct bActionConstraint{
Object *tar;
short type;
@@ -174,7 +181,7 @@ typedef struct bStretchToConstraint{
#define CONSTRAINT_TYPE_SIZELIMIT 7 /* Unimplemented */
#define CONSTRAINT_TYPE_ROTLIKE 8
#define CONSTRAINT_TYPE_LOCLIKE 9
-#define CONSTRAINT_TYPE_SIZELIKE 10 /* Unimplemented */
+#define CONSTRAINT_TYPE_SIZELIKE 10
#define CONSTRAINT_TYPE_PYTHON 11 /* Unimplemented */
#define CONSTRAINT_TYPE_ACTION 12
#define CONSTRAINT_TYPE_LOCKTRACK 13 /* New Tracking constraint that locks an axis in place - theeth */
@@ -208,6 +215,12 @@ typedef struct bStretchToConstraint{
#define LOCLIKE_Y 0x02
#define LOCLIKE_Z 0x04
#define LOCSPACE 0x08
+
+/* bSizeLikeConstraint.flag */
+#define SIZELIKE_X 0x01
+#define SIZELIKE_Y 0x02
+#define SIZELIKE_Z 0x04
+#define SIZESPACE 0x08
/* Axis flags */
#define LOCK_X 0x00