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>2019-11-11 13:49:29 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-11-11 19:32:43 +0300
commita97cc5389ae8d9ca8cc76a959f7edf4d38c50b88 (patch)
tree44bd86e955783ee6b2b675fae5b8791e6bec9c69
parentc1af9ef0312a40f4940696df9d964943c869e14c (diff)
Fix T71452: instance collection to scene from outliner not incrementing collection usercount
Maniphest Tasks: T71452 Differential Revision: https://developer.blender.org/D6222
-rw-r--r--source/blender/editors/space_outliner/outliner_collections.c1
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);