[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47989] trunk/blender/source/blender/ editors/animation/keyframing.c: Bugfix [#31843] Inserting of visual keys for Damped Track constraint broken

Joshua Leung aligorith at gmail.com
Sat Jun 16 15:51:19 CEST 2012


Revision: 47989
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47989
Author:   aligorith
Date:     2012-06-16 13:51:18 +0000 (Sat, 16 Jun 2012)
Log Message:
-----------
Bugfix [#31843] Inserting of visual keys for Damped Track constraint broken

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	2012-06-16 13:46:20 UTC (rev 47988)
+++ trunk/blender/source/blender/editors/animation/keyframing.c	2012-06-16 13:51:18 UTC (rev 47989)
@@ -559,7 +559,6 @@
 	const char *identifier = NULL;
 	
 	/* validate data */
-	// TODO: this check is probably not needed, but it won't hurt
 	if (ELEM3(NULL, ptr, ptr->data, prop))
 		return 0;
 		
@@ -635,6 +634,9 @@
 				case CONSTRAINT_TYPE_TRACKTO:
 					if (searchtype == VISUALKEY_ROT) return 1;
 					break;
+				case CONSTRAINT_TYPE_DAMPTRACK:
+					if (searchtype == VISUALKEY_ROT) return 1;
+					break;
 				case CONSTRAINT_TYPE_ROTLIMIT:
 					if (searchtype == VISUALKEY_ROT) return 1;
 					break;




More information about the Bf-blender-cvs mailing list