diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-09-17 15:43:48 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-09-17 15:43:48 +0400 |
commit | 063fbdc2a46d46e537c602cc0bd418e1f025e61f (patch) | |
tree | e2b66a2bc03bb77666567b6de9976215882b57b2 /source | |
parent | 52f551678b3c9020bad91041ad28a71d4e776140 (diff) |
Attempted bugfix for TrackTo constraint - reverting the only change (that I've picked up so far) that I made to the code of the TrackTo constraint. Apparently the Align to Target feature was broken...
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 8bd925e0500..f14199d7b9b 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -1989,6 +1989,9 @@ static void evaluate_constraint (bConstraint *constraint, float ownermat[][4], f ownermat[2][1]=0; ownermat[2][2]=size[2]; + /* targetmat[2] instead of ownermat[2] is passed to vectomat + * for backwards compatability it seems... (Aligorith) + */ VecSubf(vec, ownermat[3], targetmat[3]); vectomat(vec, ownermat[2], (short)data->reserved1, (short)data->reserved2, |