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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user