From 5b021dff4136353680ba379fc530f49ce564c104 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 24 Aug 2020 15:35:37 +0200 Subject: 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 :) --- source/blender/depsgraph/intern/depsgraph.cc | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit v1.2.3