diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-06-21 15:27:26 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-06-22 10:52:45 +0300 |
commit | 956c539e597aed84c355c8336dfd5797f4e69ea7 (patch) | |
tree | 52a6511183117fdff9407f49846fd508bd24223f /source/blender/depsgraph/DEG_depsgraph.h | |
parent | d3a792431e6a71d23ea0916294b197003a8e2367 (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/DEG_depsgraph.h')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h index d547c7cb440..27441c9a7ae 100644 --- a/source/blender/depsgraph/DEG_depsgraph.h +++ b/source/blender/depsgraph/DEG_depsgraph.h @@ -110,7 +110,7 @@ void DEG_free_node_types(void); /* Update Tagging -------------------------------- */ /* Tag dependency graph for updates when visible scenes/layers changes. */ -void DEG_graph_tag_on_visible_update(struct Main *bmain, Depsgraph *depsgraph, const bool do_time); +void DEG_graph_tag_on_visible_update(Depsgraph *depsgraph, const bool do_time); /* Tag all dependency graphs for update when visible scenes/layers changes. */ void DEG_tag_on_visible_update(struct Main *bmain, const bool do_time); |