Fix a problem that has been bugging me for a while. Tracking axis by default are...
authorMartin Poirier <theeth@yahoo.com>
Thu, 1 Jan 2004 19:21:06 +0000 (19:21 +0000)
committerMartin Poirier <theeth@yahoo.com>
Thu, 1 Jan 2004 19:21:06 +0000 (19:21 +0000)
commit7f9097334409201a9534d214570d9b1a55ac9f16
tree4c9f40eacd8ecfed514135a92f30d8d7f5be55c5
parent4b6bc29bf27c49f3545eac13d922d1ef03c655a7
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!)
source/blender/makesdna/DNA_constraint_types.h
source/blender/src/editobject.c