[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38793] trunk/blender/source/blender/ makesrna/intern/rna_access.c: Fix #27719: custom RNA properties fail to update drivers.

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Jul 28 17:52:00 CEST 2011


Revision: 38793
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38793
Author:   blendix
Date:     2011-07-28 15:51:59 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
Fix #27719: custom RNA properties fail to update drivers. Hopefully this is
not too slow, but now we do a dependency graph tag also for these in addition
to regular ID properties, not sure how to get around it.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_access.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c	2011-07-28 15:07:32 UTC (rev 38792)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c	2011-07-28 15:51:59 UTC (rev 38793)
@@ -1364,13 +1364,13 @@
 		if(prop->noteflag)
 			WM_main_add_notifier(prop->noteflag, ptr->id.data);
 	}
-	else {
+	
+	if(!is_rna || (prop->flag & PROP_IDPROPERTY)) {
 		/* WARNING! This is so property drivers update the display!
 		 * not especially nice  */
 		DAG_id_tag_update(ptr->id.data, OB_RECALC_OB|OB_RECALC_DATA|OB_RECALC_TIME);
 		WM_main_add_notifier(NC_WINDOW, NULL);
 	}
-
 }
 
 /* must keep in sync with 'rna_property_update'




More information about the Bf-blender-cvs mailing list