diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-28 18:01:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-28 19:16:01 +0300 |
commit | 42d6b8efc0cb0c5385f6b6fc6e8ba96d4dc9a93d (patch) | |
tree | eea17fea0b1acaff66082b7141912729e4cefd78 /source/blender/makesrna/intern | |
parent | d2f8b48f01f1d9898c806168dc8e46a8d966ecaa (diff) |
RNA: re-enable property notifiers
While these will be removed eventually,
it makes tracking down COW buts a hassle.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 4c27d3d2226..5a0dec28324 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -2064,10 +2064,15 @@ static void rna_property_update(bContext *C, Main *bmain, Scene *scene, PointerR else prop->update(bmain, scene, ptr); } -#if 0 - if (prop->noteflag) + +#if 1 + /* TODO(campbell): Should eventually be replaced entirely by message bus (below) + * for now keep since COW, bugs are hard to track when we have other missing updates. */ + if (prop->noteflag) { WM_main_add_notifier(prop->noteflag, ptr->id.data); -#else + } +#endif + /* if C is NULL, we're updating from animation. * avoid slow-down from f-curves by not publishing (for now). */ if (C != NULL) { @@ -2081,9 +2086,9 @@ static void rna_property_update(bContext *C, Main *bmain, Scene *scene, PointerR DEG_id_tag_update(ptr->id.data, DEG_TAG_COPY_ON_WRITE); } } -#endif + /* End message bus. */ } - + if (!is_rna || (prop->flag & PROP_IDPROPERTY)) { /* WARNING! This is so property drivers update the display! * not especially nice */ |