diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-06-25 19:12:23 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-06-25 19:12:23 +0300 |
commit | 1b6cf7a99bef577ce56502681f145474d4729acb (patch) | |
tree | 8ac88d0d27172706c576d8abcbeb45d41fb9fb53 /source/blender/editors/space_text/text_ops.c | |
parent | 42872656d85ffe95dfe2481264d01263bbb71942 (diff) |
Cleanup: get rid of BKE_text_unlink(), replace by usage of generic BKE_libblock_... API.
Diffstat (limited to 'source/blender/editors/space_text/text_ops.c')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index d404e7aaf15..94ed280f792 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -384,8 +384,7 @@ static int text_unlink_exec(bContext *C, wmOperator *UNUSED(op)) } } - BKE_text_unlink(bmain, text); - BKE_libblock_free(bmain, text); + BKE_libblock_delete(bmain, text); text_drawcache_tag_update(st, 1); WM_event_add_notifier(C, NC_TEXT | NA_REMOVED, NULL); |