[Bf-blender-cvs] [797f6e1483a] master: Fix missing updates in RNA override create functions.

Bastien Montagne noreply at git.blender.org
Thu Jun 3 15:44:51 CEST 2021


Commit: 797f6e1483a12fe4797e7cf9d435c042ddda40c4
Author: Bastien Montagne
Date:   Thu Jun 3 15:44:23 2021 +0200
Branches: master
https://developer.blender.org/rB797f6e1483a12fe4797e7cf9d435c042ddda40c4

Fix missing updates in RNA override create functions.

===================================================================

M	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;
 }



More information about the Bf-blender-cvs mailing list