From 797f6e1483a12fe4797e7cf9d435c042ddda40c4 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 3 Jun 2021 15:44:23 +0200 Subject: Fix missing updates in RNA override create functions. --- source/blender/makesrna/intern/rna_ID.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesrna/intern/rna_ID.c') diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 17c79a2f5dc..43b65b087bf 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -608,6 +608,9 @@ static ID *rna_ID_override_create(ID *id, Main *bmain, bool remap_local_usages) if (remap_local_usages) { BKE_main_id_tag_all(bmain, LIB_TAG_DOIT, false); } + + WM_main_add_notifier(NC_ID | NA_ADDED, NULL); + return local_id; } @@ -623,6 +626,8 @@ static ID *rna_ID_override_hierarchy_create( ID *id_root_override = NULL; BKE_lib_override_library_create(bmain, scene, view_layer, id, id_reference, &id_root_override); + WM_main_add_notifier(NC_ID | NA_ADDED, NULL); + return id_root_override; } -- cgit v1.2.3