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-11-03 10:53:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-03 10:53:52 +0400
commite2393d11090765caf987e5ef8e2e688d80c0e64d (patch)
tree2aa909746eb9c11fb47c60740f80fb197384565b /source/creator
parent7d7977658ad12a940597da5b78ce70e4e5081f4b (diff)
ability to have permanent callbacks that stay active when new blend files are loaded.
this works by tagging functions, eg: def my_func(scene): pass bpy.app.handlers.permanent_tag(my_func, True) # <-- important bit bpy.app.handlers.frame_change_pre.append(my_func)
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 1d083af7d07..2204ab85a2e 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -971,7 +971,7 @@ static int load_file(int UNUSED(argc), const char **argv, void *data)
#ifdef WITH_PYTHON
/* run any texts that were loaded in and flagged as modules */
BPY_driver_reset();
- BPY_app_handlers_reset();
+ BPY_app_handlers_reset(FALSE);
BPY_modules_load_user(C);
#endif