diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-11-11 13:49:29 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-11-11 19:32:43 +0300 |
commit | a97cc5389ae8d9ca8cc76a959f7edf4d38c50b88 (patch) | |
tree | 44bd86e955783ee6b2b675fae5b8791e6bec9c69 /source/blender/editors/space_outliner | |
parent | c1af9ef0312a40f4940696df9d964943c869e14c (diff) |
Fix T71452: instance collection to scene from outliner not incrementing collection usercount
Maniphest Tasks: T71452
Differential Revision: https://developer.blender.org/D6222
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_collections.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_collections.c b/source/blender/editors/space_outliner/outliner_collections.c index 03606282fcd..183a96d1325 100644 --- a/source/blender/editors/space_outliner/outliner_collections.c +++ b/source/blender/editors/space_outliner/outliner_collections.c @@ -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); |