forked from bartvdbraak/blender
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.
This commit is contained in:
parent
b8dcf3a662
commit
6d2754e07d
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user