From 1b6cf7a99bef577ce56502681f145474d4729acb Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 25 Jun 2016 18:12:23 +0200 Subject: Cleanup: get rid of BKE_text_unlink(), replace by usage of generic BKE_libblock_... API. --- source/blender/freestyle/intern/system/PythonInterpreter.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/freestyle/intern/system') diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h index 5403ec6b13b..0e08af1bac8 100644 --- a/source/blender/freestyle/intern/system/PythonInterpreter.h +++ b/source/blender/freestyle/intern/system/PythonInterpreter.h @@ -84,8 +84,7 @@ public: Text *text = BKE_text_load(&_freestyle_bmain, fn, G.main->name); if (text) { ok = BPY_execute_text(_context, text, reports, false); - BKE_text_unlink(&_freestyle_bmain, text); - BKE_libblock_free(&_freestyle_bmain, text); + BKE_libblock_delete(&_freestyle_bmain, text); } else { BKE_reportf(reports, RPT_ERROR, "Cannot open file: %s", fn); -- cgit v1.2.3