Revision: 23438
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23438
Author:   aligorith
Date:     2009-09-23 15:09:09 +0200 (Wed, 23 Sep 2009)

Log Message:
-----------
2 Anim Bugfixes:

* Loading old (2.4x) files with keyframes now inits them properly so that 
keyframes are tagged as normal keyframes not breakdowns

* TrackTo consraint was flagged wrongly for adding it with a target. This meant 
that the target didn't get set when using the Ctrl-Shift-C hotkey.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/ipo.c
    trunk/blender/source/blender/editors/object/object_constraint.c

Modified: trunk/blender/source/blender/blenkernel/intern/ipo.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/ipo.c        2009-09-23 
12:10:56 UTC (rev 23437)
+++ trunk/blender/source/blender/blenkernel/intern/ipo.c        2009-09-23 
13:09:09 UTC (rev 23438)
@@ -1214,6 +1214,9 @@
                                        /* interpolation can only be 
constant... */
                                        dst->ipo= BEZT_IPO_CONST;
                                        
+                                       /* 'hide' flag is now used for keytype 
- only 'keyframes' existed before */
+                                       dst->hide= BEZT_KEYTYPE_KEYFRAME;
+                                       
                                        /* correct values, by checking if the 
flag of interest is set */
                                        if ( ((int)(dst->vec[1][1])) & 
(abp->bit) )
                                                dst->vec[0][1]= dst->vec[1][1]= 
dst->vec[2][1] = 1.0f;
@@ -1264,6 +1267,9 @@
                                if (icu->ipo != IPO_MIXED)
                                        dst->ipo= icu->ipo;
                                        
+                               /* 'hide' flag is now used for keytype - only 
'keyframes' existed before */
+                               dst->hide= BEZT_KEYTYPE_KEYFRAME;
+                                       
                                /* correct values for euler rotation curves - 
they were degrees/10 */
                                // XXX for now, just make them into radians as 
RNA sets/reads directly in that form
                                if ( ((icu->blocktype == ID_OB) && 
ELEM3(icu->adrcode, OB_ROT_X, OB_ROT_Y, OB_ROT_Z)) ||

Modified: trunk/blender/source/blender/editors/object/object_constraint.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_constraint.c     
2009-09-23 12:10:56 UTC (rev 23437)
+++ trunk/blender/source/blender/editors/object/object_constraint.c     
2009-09-23 13:09:09 UTC (rev 23438)
@@ -919,7 +919,6 @@
                /* restricted target-type constraints -------------- */
                /* NOTE: for these, we cannot try to add a target object if no 
valid ones are found, since that doesn't work */
                        /* curve-based constraints - set the only_curve and 
only_ob flags */
-               case CONSTRAINT_TYPE_TRACKTO:
                case CONSTRAINT_TYPE_CLAMPTO:
                case CONSTRAINT_TYPE_FOLLOWPATH:
                        only_curve= 1;


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to