diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-08-24 16:35:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-08-24 16:55:07 +0300 |
commit | 5b021dff4136353680ba379fc530f49ce564c104 (patch) | |
tree | 7f32e7d7d7a4f57ac35fc7e41abd0a78523ecd06 /source/blender | |
parent | ee2e2f14ac1b14869edbfc950714f8a67b1274aa (diff) |
Fix T80035: Fix crash switching/adding scenes
Ensure that time source always is in the dependency graph, allowing to
tag the graph for time update prior it was fully built.
Collaboration of Philipp Oeser, Jacques Lucke and myself.
Thanks everyone :)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc index c0feab2262a..99804a7cd7d 100644 --- a/source/blender/depsgraph/intern/depsgraph.cc +++ b/source/blender/depsgraph/intern/depsgraph.cc @@ -77,6 +77,8 @@ Depsgraph::Depsgraph(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluati memset(id_type_updated, 0, sizeof(id_type_updated)); memset(id_type_exist, 0, sizeof(id_type_exist)); memset(physics_relations, 0, sizeof(physics_relations)); + + add_time_source(); } Depsgraph::~Depsgraph() |