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>2004-01-01 22:21:06 +0300
committerMartin Poirier <theeth@yahoo.com>2004-01-01 22:21:06 +0300
commit7f9097334409201a9534d214570d9b1a55ac9f16 (patch)
tree4c9f40eacd8ecfed514135a92f30d8d7f5be55c5 /source/blender/makesdna/DNA_constraint_types.h
parent4b6bc29bf27c49f3545eac13d922d1ef03c655a7 (diff)
Fix a problem that has been bugging me for a while. Tracking axis by default are different for Lamp and Camera than for the rest. For the constraint, it wasn't using the correct ones for them, so obviously, it didn't track correctly by default.
Fixed by checking the object type and changing the up and track axis accordingly. Also added some comments in the DNA file (recompiling makedna because of comments is fun!)
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r--source/blender/makesdna/DNA_constraint_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h
index 1fb28fb8d87..d48e18c177a 100644
--- a/source/blender/makesdna/DNA_constraint_types.h
+++ b/source/blender/makesdna/DNA_constraint_types.h
@@ -79,8 +79,8 @@ typedef struct bKinematicConstraint{
typedef struct bTrackToConstraint{
Object *tar;
- int reserved1;
- int reserved2;
+ int reserved1; /* Track Axis */
+ int reserved2; /* Up Axis */
char subtarget[32];
} bTrackToConstraint;