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:
authorSergey Sharybin <sergey@blender.org>2021-06-21 15:27:26 +0300
committerSergey Sharybin <sergey@blender.org>2021-06-22 10:52:45 +0300
commit956c539e597aed84c355c8336dfd5797f4e69ea7 (patch)
tree52a6511183117fdff9407f49846fd508bd24223f /source/blender/depsgraph/intern/depsgraph.h
parentd3a792431e6a71d23ea0916294b197003a8e2367 (diff)
Fix T89196: Depsgraph use-after-free after scene switching undo
Delay depsgraph visibility update tagging until it is known that graph relations are up to date, and until it is known that the graph is actually needed to be evaluated. Differential Revision: https://developer.blender.org/D11660
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.h')
-rw-r--r--source/blender/depsgraph/intern/depsgraph.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h
index b87ce94709a..ff536c19c05 100644
--- a/source/blender/depsgraph/intern/depsgraph.h
+++ b/source/blender/depsgraph/intern/depsgraph.h
@@ -108,6 +108,11 @@ struct Depsgraph {
/* Indicates whether relations needs to be updated. */
bool need_update;
+ /* Indicated whether IDs in this graph are to be tagged as if they first appear visible, with
+ * an optional tag for their animation (time) update. */
+ bool need_visibility_update;
+ bool need_visibility_time_update;
+
/* Indicates which ID types were updated. */
char id_type_updated[INDEX_ID_MAX];