Fix missing clear of Object->drawdata listbase in new copying code.
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 15 Aug 2017 15:13:09 +0000 (17:13 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 15 Aug 2017 15:13:09 +0000 (17:13 +0200)
source/blender/blenkernel/intern/object.c

index 7470453ba77e2a07057d69202be98c58f54632ed..b90371a448e368cf1bcfc2ac2730f0aecc86dcda 100644 (file)
@@ -1209,6 +1209,7 @@ void BKE_object_copy_data(Main *UNUSED(bmain), Object *ob_dst, const Object *ob_
        ob_dst->derivedFinal = NULL;
 
        BLI_listbase_clear(&ob_dst->gpulamp);
+       BLI_listbase_clear(&ob_dst->drawdata);
        BLI_listbase_clear(&ob_dst->pc_ids);
 
        ob_dst->mpath = NULL;