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
This commit is contained in:
Dalai Felinto 2017-02-27 11:18:06 +01:00
parent aff8ce438a
commit edba025c92
1 changed files with 1 additions and 0 deletions

View File

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