[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59761] trunk/blender/source/blender/ editors/space_graph/graph_edit.c: Bugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if

Joshua Leung aligorith at gmail.com
Tue Sep 3 08:46:17 CEST 2013


Revision: 59761
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59761
Author:   aligorith
Date:     2013-09-03 06:46:17 +0000 (Tue, 03 Sep 2013)
Log Message:
-----------
Bugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
it has a driver

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_graph/graph_edit.c

Modified: trunk/blender/source/blender/editors/space_graph/graph_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_edit.c	2013-09-03 06:27:03 UTC (rev 59760)
+++ trunk/blender/source/blender/editors/space_graph/graph_edit.c	2013-09-03 06:46:17 UTC (rev 59761)
@@ -882,8 +882,12 @@
 		delete_fcurve_keys(fcu); 
 		
 		/* Only delete curve too if it won't be doing anything anymore */
-		if ((fcu->totvert == 0) && (list_has_suitable_fmodifier(&fcu->modifiers, 0, FMI_TYPE_GENERATE_CURVE) == 0))
+		if ((fcu->totvert == 0) && 
+			(list_has_suitable_fmodifier(&fcu->modifiers, 0, FMI_TYPE_GENERATE_CURVE) == 0) &&
+			(fcu->driver == NULL)) 
+		{
 			ANIM_fcurve_delete_from_animdata(ac, adt, fcu);
+		}
 	}
 	
 	/* free filtered list */




More information about the Bf-blender-cvs mailing list