Revision: 23414
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23414
Author:   aligorith
Date:     2009-09-22 03:27:48 +0200 (Tue, 22 Sep 2009)

Log Message:
-----------
2.5 - Keyframe types are now preserved after inserting keyframes which would 
overwrite the existing keyframes

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyframing.c

Modified: trunk/blender/source/blender/editors/animation/keyframing.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframing.c 2009-09-21 
21:37:19 UTC (rev 23413)
+++ trunk/blender/source/blender/editors/animation/keyframing.c 2009-09-22 
01:27:48 UTC (rev 23414)
@@ -207,8 +207,13 @@
                                        // TODO: perform some other operations?
                                }
                                else {
+                                       char oldKeyType= BEZKEYTYPE(fcu->bezt + 
i);
+                                       
                                        /* just brutally replace the values */
                                        *(fcu->bezt + i) = *bezt;
+                                       
+                                       /* special exception for keyframe type 
- copy value back so that this info isn't lost */
+                                       BEZKEYTYPE(fcu->bezt + i)= oldKeyType;
                                }
                        }
                }


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to