[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36545] trunk/blender/source/blender: Fixes for bugs noticed during previous fix:

Joshua Leung aligorith at gmail.com
Sun May 8 07:41:58 CEST 2011


Revision: 36545
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36545
Author:   aligorith
Date:     2011-05-08 05:41:57 +0000 (Sun, 08 May 2011)
Log Message:
-----------
Fixes for bugs noticed during previous fix:
- In Drivers mode of Graph Editor, expanders for sub-object data were
not working at all. This was because they were getting overriden by an
errant ob-level drivers check
- Adding drivers from py-api didn't update Graph Editor

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_filter.c
    trunk/blender/source/blender/python/intern/bpy_rna_anim.c

Modified: trunk/blender/source/blender/editors/animation/anim_filter.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_filter.c	2011-05-08 05:18:40 UTC (rev 36544)
+++ trunk/blender/source/blender/editors/animation/anim_filter.c	2011-05-08 05:41:57 UTC (rev 36545)
@@ -1645,10 +1645,6 @@
 			break;
 	}
 	
-	/* special exception for drivers instead of action */
-	if (ads->filterflag & ADS_FILTER_ONLYDRIVERS)
-		expanded= EXPANDED_DRVD(adt);
-	
 	/* include data-expand widget? */
 	if ((filter_mode & ANIMFILTER_CURVESONLY) == 0) {	
 		/* check if filtering by active status */

Modified: trunk/blender/source/blender/python/intern/bpy_rna_anim.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna_anim.c	2011-05-08 05:18:40 UTC (rev 36544)
+++ trunk/blender/source/blender/python/intern/bpy_rna_anim.c	2011-05-08 05:41:57 UTC (rev 36545)
@@ -44,6 +44,9 @@
 
 #include "RNA_access.h"
 
+#include "WM_api.h"
+#include "WM_types.h"
+
 #include "bpy_rna.h"
 #include "bpy_util.h"
 #include "bpy_rna_anim.h"
@@ -320,6 +323,8 @@
 				RNA_pointer_create(id, &RNA_FCurve, fcu, &tptr);
 				ret= pyrna_struct_CreatePyObject(&tptr);
 			}
+			
+			WM_event_add_notifier(BPy_GetContext(), NC_ANIMATION|ND_FCURVES_ORDER, NULL);
 		}
 		else {
 			/* XXX, should be handled by reports, */
@@ -371,6 +376,8 @@
 
 		if(BPy_reports_to_error(&reports, PyExc_RuntimeError, TRUE) == -1)
 			return NULL;
+		
+		WM_event_add_notifier(BPy_GetContext(), NC_ANIMATION|ND_FCURVES_ORDER, NULL);
 
 		return PyBool_FromLong(result);
 	}




More information about the Bf-blender-cvs mailing list