[Bf-blender-cvs] [a97cc5389ae] blender-v2.81-release: Fix T71452: instance collection to scene from outliner not incrementing collection usercount

Philipp Oeser noreply at git.blender.org
Mon Nov 11 17:37:28 CET 2019


Commit: a97cc5389ae8d9ca8cc76a959f7edf4d38c50b88
Author: Philipp Oeser
Date:   Mon Nov 11 11:49:29 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rBa97cc5389ae8d9ca8cc76a959f7edf4d38c50b88

Fix T71452: instance collection to scene from outliner not incrementing collection usercount

Maniphest Tasks: T71452

Differential Revision: https://developer.blender.org/D6222

===================================================================

M	source/blender/editors/space_outliner/outliner_collections.c

===================================================================

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



More information about the Bf-blender-cvs mailing list