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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-04-18 12:25:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-18 12:25:31 +0300
commit7cdc0b76aa976d7e6f7abd97ceb75529cf9a785b (patch)
tree386aa7bd99a4ec955bd982bcd2772687d46eb951 /source/blender/blenkernel/intern/library_override.c
parent05ef225272366f754a56ef5bfe63405f6af01729 (diff)
Make depsgraph tag for auto-override IDs it updates.
This will reduce amount of needless auto-override checks, at least when not touching anything related to overriding IDs...
Diffstat (limited to 'source/blender/blenkernel/intern/library_override.c')
-rw-r--r--source/blender/blenkernel/intern/library_override.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/library_override.c b/source/blender/blenkernel/intern/library_override.c
index 17cabc247ae..a90a7196aad 100644
--- a/source/blender/blenkernel/intern/library_override.c
+++ b/source/blender/blenkernel/intern/library_override.c
@@ -557,9 +557,9 @@ void BKE_main_override_static_operations_create(Main *bmain)
ID *id;
for (id = lb->first; id; id = id->next) {
- /* TODO Maybe we could also add an 'override update' tag e.g. when tagging for DEG update? */
- if (id->lib == NULL && id->override_static != NULL && id->override_static->reference != NULL && (id->flag & LIB_OVERRIDE_STATIC_AUTO)) {
+ if (ID_IS_STATIC_OVERRIDE_AUTO(id) && (id->tag & LIB_TAG_OVERRIDESTATIC_AUTOREFRESH)) {
BKE_override_static_operations_create(id);
+ id->tag &= ~LIB_TAG_OVERRIDESTATIC_AUTOREFRESH;
}
}
}