[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23414] trunk/blender/source/blender/ editors/animation/keyframing.c: 2. 5 - Keyframe types are now preserved after inserting keyframes which would overwrite the existing keyframes

Joshua Leung aligorith at gmail.com
Tue Sep 22 03:27:50 CEST 2009


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;
 				}
 			}
 		}





More information about the Bf-blender-cvs mailing list