diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-27 13:18:06 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-27 13:18:11 +0300 |
commit | edba025c92e637d956e37434170a68fc3f0e0b9b (patch) | |
tree | 812e8a7263683b971a81d1cf7e3b30bda28d5e47 /source/blender | |
parent | aff8ce438a1f856f44e92319063950d7fc500c24 (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.c | 1 |
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; |