From 8cf8fd7326f0961bad2cd633092fccbcadf0cc92 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 20 Sep 2011 17:07:33 +0000 Subject: - translation scripts now run with py3.x - added convenience make target 'make translations' - some MEM_malloc strings were not unique enough, expanded them. --- source/blender/python/intern/bpy_interface_atexit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/python/intern/bpy_interface_atexit.c') diff --git a/source/blender/python/intern/bpy_interface_atexit.c b/source/blender/python/intern/bpy_interface_atexit.c index de59ce1584d..ac8c90198a0 100644 --- a/source/blender/python/intern/bpy_interface_atexit.c +++ b/source/blender/python/intern/bpy_interface_atexit.c @@ -79,7 +79,7 @@ static void atexit_func_call(const char *func_name, PyObject *atexit_func_arg) void BPY_atexit_register(void) { /* atexit module owns this new function reference */ - BLI_assert(func_bpy_atregister ==NULL); + BLI_assert(func_bpy_atregister == NULL); func_bpy_atregister= (PyObject *)PyCFunction_New(&meth_bpy_atexit, NULL); atexit_func_call("register", func_bpy_atregister); @@ -87,6 +87,8 @@ void BPY_atexit_register(void) void BPY_atexit_unregister(void) { + BLI_assert(func_bpy_atregister != NULL); + atexit_func_call("unregister", func_bpy_atregister); func_bpy_atregister= NULL; /* don't really need to set but just incase */ } -- cgit v1.2.3