Blender Git Loki

Git Commits -> Revision e2393d1

Revision e2393d1 by Campbell Barton (master)
November 3, 2011, 06:53 (GMT)
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)

Commit Details:

Full Hash: e2393d11090765caf987e5ef8e2e688d80c0e64d
SVN Revision: 41485
Parent Commit: 7d79776
Lines Changed: +119, -11

6 Modified Paths:

/source/blender/python/BPY_extern.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_app_handlers.c (+110, -3) (Diff)
/source/blender/render/intern/source/convertblender.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+4, -3) (Diff)
/source/creator/creator.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021