Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-06-03 16:44:23 +0300
committerBastien Montagne <bastien@blender.org>2021-06-03 16:44:23 +0300
commit797f6e1483a12fe4797e7cf9d435c042ddda40c4 (patch)
treeccc2737a23d11703c7cc0be1ecb1c36ff76675e5 /source/blender/makesrna/intern/rna_ID.c
parente011e4ce76cab3e4cb3f0024f7dd0108220ffe4e (diff)
Fix missing updates in RNA override create functions.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c5
1 files changed, 5 insertions, 0 deletions
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;
}