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'

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to