Attempted bugfix for TrackTo constraint - reverting the only change (that I've picked...
authorJoshua Leung <aligorith@gmail.com>
Mon, 17 Sep 2007 11:43:48 +0000 (11:43 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 17 Sep 2007 11:43:48 +0000 (11:43 +0000)
source/blender/blenkernel/intern/constraint.c

index 8bd925e05002dc1d5b8c8ac7bf8de5040c6339a2..f14199d7b9b4b7d5663a5ba83c4c30620240d53a 100644 (file)
@@ -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,