blender/source/creator
Campbell Barton 12e02fd474 own patch [#27752] Python Callback (Scriptlink functionality)
Python:
 * adds bpy.app.handlers which contains lists, each for an event type:
   render_pre, render_post, load_pre, load_post, save_pre, save_post
 * each list item needs to be a callable object which takes 1 argument (the ID).
 * callbacks are cleared on file load.

Example:
 def MyFunc(scene): print("Callback:", data)
 bpy.app.handlers.render_post.append(MyFunc)

C:
 * This patch adds a generic C callback api which is currently only used by python.
 * Unlike python callbacks these are not cleared on file load.
2011-06-24 16:54:30 +00:00
..
buildinfo.c fix #if errors, add defined() in proper places 2011-02-25 10:01:33 +00:00
CMakeLists.txt cmake was installing .bfont.ttf in ~/.blender/VER/config, use ~/.blender/VER instead (as with scons) 2011-06-22 08:43:01 +00:00
creator.c own patch [#27752] Python Callback (Scriptlink functionality) 2011-06-24 16:54:30 +00:00
SConscript Shuffle some build code around to ensure debug builds on Windows actually run too. 2011-06-08 11:53:07 +00:00