Fix T65662: Drivers on custom properties doesn't properly update

Happens if custom property is on object data data-block, which doesn't
have translation or geometry components. Not for lights and cameras at
least.
This commit is contained in:
2019-06-17 14:09:01 +02:00
parent b50de0f8b7
commit 5e7e49e00d
3 changed files with 9 additions and 1 deletions

View File

@@ -2316,7 +2316,8 @@ static void rna_property_update(
if (!is_rna || (prop->flag & PROP_IDPROPERTY)) {
/* WARNING! This is so property drivers update the display!
* not especially nice */
DEG_id_tag_update(ptr->id.data, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
DEG_id_tag_update(ptr->id.data,
ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_PARAMETERS);
WM_main_add_notifier(NC_WINDOW, NULL);
/* Not nice as well, but the only way to make sure material preview
* is updated with custom nodes.