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:
Philipp Oeser 2019-11-11 11:49:29 +01:00
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
1 changed files with 1 additions and 0 deletions

View File

@ -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);