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:
authorDalai Felinto <dfelinto@gmail.com>2017-02-27 13:18:06 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-27 13:18:11 +0300
commitedba025c92e637d956e37434170a68fc3f0e0b9b (patch)
tree812e8a7263683b971a81d1cf7e3b30bda28d5e47 /source/blender
parentaff8ce438a1f856f44e92319063950d7fc500c24 (diff)
Prevent crash when copying object
ob->collection_settings is to be handled by depsgraph, but we may as well make sure things do not crash meanwhile
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/object.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 250ad6794fe..34ccfea8f4f 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1176,6 +1176,7 @@ Object *BKE_object_copy_ex(Main *bmain, Object *ob, bool copy_caches)
BLI_listbase_clear(&obn->gpulamp);
BLI_listbase_clear(&obn->pc_ids);
+ BLI_listbase_clear(&obn->collection_settings);
obn->mpath = NULL;