Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-20 21:07:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-20 21:07:33 +0400
commit8cf8fd7326f0961bad2cd633092fccbcadf0cc92 (patch)
treed3ea45fcf0ea4a6a242a5c942a06caf01fac6d55 /source/blender/python/intern/bpy_interface_atexit.c
parent9d1b4b63b33b77505f4399a4db4f462f5b1fd1eb (diff)
- translation scripts now run with py3.x
- added convenience make target 'make translations' - some MEM_malloc strings were not unique enough, expanded them.
Diffstat (limited to 'source/blender/python/intern/bpy_interface_atexit.c')
-rw-r--r--source/blender/python/intern/bpy_interface_atexit.c4
1 files changed, 3 insertions, 1 deletions
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 */
}