diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-14 17:47:11 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-15 13:09:16 +0300 |
commit | 6af97b84dfa286fc5c8efb2b0536ed1b87f591b0 (patch) | |
tree | d335327ddcf6d5d2a4c1a4ecdb3de0034f6b4ab4 /source/blender/makesrna | |
parent | 2f39ca38437d94a63ba020ef110b413ee3f7894b (diff) |
Cleanup: replace usages of deprecated BKE_libblock_free by BKE_id_free.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_sequencer_api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index c6094dc2dc3..0b521ceb686 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -167,7 +167,7 @@ static Scene *rna_Main_scenes_new(Main *bmain, const char *name) } static void rna_Main_scenes_remove(Main *bmain, bContext *C, ReportList *reports, PointerRNA *scene_ptr, bool do_unlink) { - /* don't call BKE_libblock_free(...) directly */ + /* don't call BKE_id_free(...) directly */ Scene *scene = scene_ptr->data; Scene *scene_new; diff --git a/source/blender/makesrna/intern/rna_sequencer_api.c b/source/blender/makesrna/intern/rna_sequencer_api.c index 4c56f4c7ccd..cf868ebe3ce 100644 --- a/source/blender/makesrna/intern/rna_sequencer_api.c +++ b/source/blender/makesrna/intern/rna_sequencer_api.c @@ -230,7 +230,7 @@ static Sequence *rna_Sequences_new_sound(ID *id, Editing *ed, Main *bmain, Repor bSound *sound = BKE_sound_new_file(bmain, file); if (sound->playback_handle == NULL) { - BKE_libblock_free(bmain, sound); + BKE_id_free(bmain, sound); BKE_report(reports, RPT_ERROR, "Sequences.new_sound: unable to open sound file"); return NULL; } |