Fix T71452: instance collection to scene from outliner not incrementing collection usercount
Maniphest Tasks: T71452 Differential Revision: https://developer.blender.org/D6222
This commit is contained in:
parent
c1af9ef031
commit
a97cc5389a
Notes:
blender-bot
2023-02-14 07:18:54 +01:00
Referenced by issue #71452, When you delete an instance, the collection disappears
|
@ -676,6 +676,7 @@ static int collection_instance_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
ob->instance_collection = collection;
|
||||
ob->transflag |= OB_DUPLICOLLECTION;
|
||||
id_lib_extern(&collection->id);
|
||||
id_us_plus(&collection->id);
|
||||
}
|
||||
|
||||
BLI_gset_free(data.collections_to_edit, NULL);
|
||||
|
|
Loading…
Reference in New Issue