diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-09 20:40:06 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-09 20:43:11 +0300 |
commit | be2e41c397ba4d13b13e817bee46628ce984bd6b (patch) | |
tree | 3b9f34cf8f7d0b7635d74d81e7de541e55515717 /source/blender/blenkernel/intern/lightprobe.c | |
parent | 6472a721f0f6df6e813f4cb78217d70f8aed588e (diff) |
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).
Diffstat (limited to 'source/blender/blenkernel/intern/lightprobe.c')
-rw-r--r-- | source/blender/blenkernel/intern/lightprobe.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/lightprobe.c b/source/blender/blenkernel/intern/lightprobe.c index f360edfbf54..5848444a0d7 100644 --- a/source/blender/blenkernel/intern/lightprobe.c +++ b/source/blender/blenkernel/intern/lightprobe.c @@ -110,11 +110,6 @@ static void lightprobe_make_local(Main *bmain, ID *id, const int flags) BKE_lib_id_make_local_generic(bmain, id, flags); } -static void lightprobe_free_data(ID *id) -{ - BKE_animdata_free(id, false); -} - IDTypeInfo IDType_ID_LP = { .id_code = ID_LP, .id_filter = FILTER_ID_LP, @@ -127,6 +122,6 @@ IDTypeInfo IDType_ID_LP = { .init_data = lightprobe_init_data, .copy_data = lightprobe_copy_data, - .free_data = lightprobe_free_data, + .free_data = NULL, .make_local = lightprobe_make_local, }; |