modify previous api feature to tag functions as permanent, use nicer decorator style...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Nov 2011 09:13:47 +0000 (09:13 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Nov 2011 09:13:47 +0000 (09:13 +0000)
commit5eef9374362eb1089f08d4ab5f397843d2301d7a
tree5782d7cf8e1e55bedb783e6db09d88ed8f4ee907
parente2393d11090765caf987e5ef8e2e688d80c0e64d
modify previous api feature to tag functions as permanent, use nicer decorator style, eg:

# --------

import bpy
from bpy.app.handlers import persistent

@persistent
def my_func(scene):
    pass

bpy.app.handlers.frame_change_pre.append(my_func)
release/scripts/modules/bpy/__init__.py
source/blender/python/intern/bpy_app_handlers.c