[Bf-blender-cvs] [5498fb79530] temp-group-collections: Fix collection groups crash after saving and loading file

Dalai Felinto noreply at git.blender.org
Wed Nov 1 18:15:20 CET 2017


Commit: 5498fb79530bd29c75769740d86f22f42f74a069
Author: Dalai Felinto
Date:   Wed Nov 1 13:04:53 2017 -0200
Branches: temp-group-collections
https://developer.blender.org/rB5498fb79530bd29c75769740d86f22f42f74a069

Fix collection groups crash after saving and loading file

If you save again and re-open they are still gone though :/

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

M	source/blender/blenkernel/intern/collection.c

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

diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index f152d4daf6d..b2e52060a26 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -530,7 +530,7 @@ Group *BKE_collection_group_create(Main *bmain, Scene *scene, LayerCollection *l
 	collection_group_cleanup(group);
 
 	sc_dst = BKE_collection_add(&group->id, NULL, COLLECTION_TYPE_GROUP_INTERNAL, sc_src->name);
-	BKE_collection_copy_data(sc_dst, sc_src, LIB_ID_CREATE_NO_USER_REFCOUNT);
+	BKE_collection_copy_data(sc_dst, sc_src, 0);
 	FOREACH_SCENE_COLLECTION(&group->id, sc_group)
 	{
 		sc_group->type = COLLECTION_TYPE_GROUP_INTERNAL;



More information about the Bf-blender-cvs mailing list