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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-03-02 20:40:42 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-03-03 10:53:13 +0300
commita915e47ca17d6f4949088137f5d39dcb4f582cd2 (patch)
tree7ad4d4e7a5293317e45067cbcebe8de5708f75d5 /source/blender/makesrna/intern/rna_ID.c
parent44ab908c8624326f8b3e90eb5ef45c3d7d87ae0e (diff)
Fix (unreported) Outliner missing updates copying IDs via python
Steps to reproduce: - switch to Scripting workspace - execute bpy.data.meshes['Cube'].copy() - Outliner will not show the new mesh immediately Now just send appropriate notifier. Differential Revision: https://developer.blender.org/D10584
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index fd19352a9a5..6e2005b7314 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -528,6 +528,9 @@ static ID *rna_ID_copy(ID *id, Main *bmain)
if (newid != NULL) {
id_us_min(newid);
}
+
+ WM_main_add_notifier(NC_ID | NA_ADDED, NULL);
+
return newid;
}