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/intern/depsgraph_tag.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/intern/depsgraph_tag.h')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_tag.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_tag.h b/source/blender/depsgraph/intern/depsgraph_tag.h index 68b6a164be4..70504840fef 100644 --- a/source/blender/depsgraph/intern/depsgraph_tag.h +++ b/source/blender/depsgraph/intern/depsgraph_tag.h @@ -41,5 +41,9 @@ void id_tag_update(Main *bmain, ID *id, int flag, eUpdateSource update_source); void graph_id_tag_update( Main *bmain, Depsgraph *graph, ID *id, int flag, eUpdateSource update_source); +/* Tag IDs of the graph for the visibility update tags. + * Will do nothing if the graph is not tagged for visibility update. */ +void graph_tag_ids_for_visible_update(Depsgraph *graph); + } // namespace deg } // namespace blender |