Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-10-16 14:54:29 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-10-16 14:54:29 +0300
commit5c961b3b582f77f9f7e9fa99476217753c424d32 (patch)
tree771e30f6c5c6a0fda6355165d8e26d6ccf1ff572 /source/blender/makesrna/intern/rna_access.c
parentb3c469153efe0e3f4f36a6bf6667d47727a5a743 (diff)
Revert "Fix T62325, T91990: changing Cycles presets does not update the Blender UI"
This reverts commit 1b6752e599b5ed70823d09f90c418e448516d4b4. It is causing constant redraws due to some ID properties seemingly being edited on every redraw.
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 88c3db0c65b..40b5f3ed1da 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -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)