From 33718b2d75483f71404a09915ff2f1a09c697c47 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 17 Aug 2023 11:31:59 +0200 Subject: [PATCH] Fix #111165: Regression: Blender Crashes On Scene Switch Fix missing depsgraph tag in the "Link Objects to Scene" operator. Pull Request: https://projects.blender.org/blender/blender/pulls/111214 --- source/blender/editors/object/object_relations.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/object/object_relations.cc b/source/blender/editors/object/object_relations.cc index 229a2f46024..98cab76256c 100644 --- a/source/blender/editors/object/object_relations.cc +++ b/source/blender/editors/object/object_relations.cc @@ -1405,6 +1405,8 @@ static int make_links_scene_exec(bContext *C, wmOperator *op) } CTX_DATA_END; + DEG_id_tag_update(&collection_to->id, ID_RECALC_HIERARCHY); + DEG_relations_tag_update(bmain); /* redraw the 3D view because the object center points are colored differently */