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>2007-04-06 23:42:46 +0400
committerMartin Poirier <theeth@yahoo.com>2007-04-06 23:42:46 +0400
commitf42bc12285388e6fb93cba1223f90dcb7dcf5373 (patch)
treefb1d14d458489245de698bf09c86544294f57123 /source/blender/makesdna
parent3f07ca5954c3343f88b418cb56c4c57f0c20b285 (diff)
=== BPY ===
Adding Python counterparts to the Invert params for Copy Rot and Copy Loc. I had to align the constants being used, so if you had files using those options (introduced after 2.43), you'll have to modify the INVERT settings for ROTLIKE constraints (didn't feel like making a minor version bump for this, if people thing otherwise, please say so). Based on a patch by Juho Vepsäläinen (bebraw)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index 14506f1b1aa..6cf1403b803 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -252,14 +252,19 @@ typedef struct bRigidBodyJointConstraint{
#define CONSTRAINT_CHANNEL_SELECT 0x01
#define CONSTRAINT_CHANNEL_PROTECTED 0x02
+/**
+ * The flags for ROTLIKE, LOCLIKE and SIZELIKE should be kept identical
+ * (that is, same effect, different name). It simplifies the Python API access a lot.
+ */
+
/* bRotateLikeConstraint.flag */
#define ROTLIKE_X 0x01
#define ROTLIKE_Y 0x02
#define ROTLIKE_Z 0x04
-#define ROTLIKE_X_INVERT 0x08
-#define ROTLIKE_Y_INVERT 0x10
-#define ROTLIKE_Z_INVERT 0x20
-#define ROTLIKE_OFFSET 0x40
+#define ROTLIKE_X_INVERT 0x10
+#define ROTLIKE_Y_INVERT 0x20
+#define ROTLIKE_Z_INVERT 0x40
+#define ROTLIKE_OFFSET 0x80
/* bLocateLikeConstraint.flag */
#define LOCLIKE_X 0x01
@@ -275,7 +280,7 @@ typedef struct bRigidBodyJointConstraint{
#define SIZELIKE_X 0x01
#define SIZELIKE_Y 0x02
#define SIZELIKE_Z 0x04
-#define SIZELIKE_OFFSET 0x08
+#define SIZELIKE_OFFSET 0x80
/* Axis flags */
#define LOCK_X 0x00