From be2e41c397ba4d13b13e817bee46628ce984bd6b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 9 Mar 2020 18:40:06 +0100 Subject: Cleanup: Move `BKE_animdata_free()` call out of each IDType free data. This has been long standing TODO... Note that remaining usages of BKE_xxx_delete should all be carefully checked for and utilmately nuked in favor of `BKE_id_delete()`, think we still have quiet a few bugs hidden in those (code seems to usually assume those functions do a full ID deletion, which is not the case). --- source/blender/blenkernel/intern/linestyle.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/blenkernel/intern/linestyle.c') diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c index c309557e531..c5767e8bbcc 100644 --- a/source/blender/blenkernel/intern/linestyle.c +++ b/source/blender/blenkernel/intern/linestyle.c @@ -120,8 +120,6 @@ static void linestyle_free_data(ID *id) FreestyleLineStyle *linestyle = (FreestyleLineStyle *)id; LineStyleModifier *linestyle_modifier; - BKE_animdata_free(&linestyle->id, false); - for (int material_slot_index = 0; material_slot_index < MAX_MTEX; material_slot_index++) { MEM_SAFE_FREE(linestyle->mtex[material_slot_index]); } -- cgit v1.2.3