1
1

Revert "Fix T62325, T91990: changing Cycles presets does not update the Blender UI"

This reverts commit 1b6752e599. It is causing
constant redraws due to some ID properties seemingly being edited on every
redraw.
This commit is contained in:
2021-10-16 13:54:29 +02:00
parent b3c469153e
commit 5c961b3b58

View File

@@ -2199,11 +2199,7 @@ static void rna_property_update(
* but this isn't likely to be a performance problem. */
bool RNA_property_update_check(PropertyRNA *prop)
{
return
/* Always update ID properties. */
(prop->magic != RNA_MAGIC || (prop->flag & PROP_IDPROPERTY)) ||
/* For native RNA properties only update if there is a callback or notifier. */
(prop->update || prop->noteflag);
return (prop->magic != RNA_MAGIC || prop->update || prop->noteflag);
}
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)