From 4eab8fae5a9642eb3fe523d6cc253fa0805426dc Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 20 Mar 2024 16:06:06 +0100 Subject: [PATCH] Fix #119697: Incorrect update after disabling light linking The issue was caused by 29aaa2922d1. With the change from the offended commit there was nothing that would have informed objects previously linked to a light that they need to re-calculate their light linking collections. This change makes it so scene's hierarchy is tagged for update, which propagates to all dependencies which do depend on hierarchy of objects and collections in the scene. This brings behavior closer to what it used to be, without causing slowdown with full re-evaluation (which was fixed by the offending commit). Pull Request: https://projects.blender.org/blender/blender/pulls/119698 --- source/blender/depsgraph/intern/depsgraph_build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index 822fe1e5f81..9a31b6734e4 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -292,7 +292,7 @@ void DEG_graph_tag_relations_update(Depsgraph *graph) graph_id_tag_update(deg_graph->bmain, deg_graph, °_graph->scene->id, - ID_RECALC_BASE_FLAGS, + ID_RECALC_BASE_FLAGS | ID_RECALC_HIERARCHY, deg::DEG_UPDATE_SOURCE_RELATIONS); } }