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
This commit is contained in:
parent
44ab908c86
commit
a915e47ca1
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue