Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-28 19:51:59 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-28 19:51:59 +0400
commit6d2754e07d0785e30c75cf6498b94f1fb5f54f46 (patch)
treedfd67cc4ca544e8463470eba9aeeebd9cad50e3a /source/blender/makesrna/intern/rna_access.c
parentb8dcf3a662f35fef388294c635386b952f6bf981 (diff)
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index dcf2400b9ba..e71be8c153e 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -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'