diff options
author | Bastien Montagne <bastien@blender.org> | 2021-06-03 16:44:23 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-06-03 16:44:23 +0300 |
commit | 797f6e1483a12fe4797e7cf9d435c042ddda40c4 (patch) | |
tree | ccc2737a23d11703c7cc0be1ecb1c36ff76675e5 /source/blender/makesrna | |
parent | e011e4ce76cab3e4cb3f0024f7dd0108220ffe4e (diff) |
Fix missing updates in RNA override create functions.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 5 |
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; } |