Fix #27719: custom RNA properties fail to update drivers. Hopefully this is
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 28 Jul 2011 15:51:59 +0000 (15:51 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 28 Jul 2011 15:51:59 +0000 (15:51 +0000)
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.

source/blender/makesrna/intern/rna_access.c

index dcf2400b9badcc4fe69bc6dc2ff4500c5c7e847f..e71be8c153e89fbc9366c9d337133ceb74789005 100644 (file)
@@ -1364,13 +1364,13 @@ static void rna_property_update(bContext *C, Main *bmain, Scene *scene, PointerR
                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'