Blender Git Commit Log
Git Commits -> Revision 0e3d637
Revision 0e3d637 by Campbell Barton (master) December 20, 2012, 13:29 (GMT) |
Change region drawing callbacks to work much closer to how blender manages them internally. - yes, this does break scripts, but the api is marked experimental. ED_region_draw_cb_activate() adds a callback to a region type whereas the api made it look like the callback was being added to the region instance. Use a class method on bpy.types.Space to manage region drawing, eg. was: self._handle = context.region.callback_add(draw_callback_px, args, 'POST_PIXEL') is now: self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL') |
Commit Details:
Full Hash: 0e3d637ad040f55412856d10197f66f166591e49
SVN Revision: 53207
Parent Commit: 80bcc20
Lines Changed: +230, -13
8 Modified Paths:
/release/scripts/templates/operator_modal_draw.py (+5, -3) (Diff)
/source/blender/blenkernel/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+1, -1) (Diff)
/source/blender/python/intern/bpy.c (+4, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+42, -0) (Diff)
/source/blender/python/intern/bpy_rna.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_rna_callback.c (+171, -8) (Diff)
/source/blender/python/intern/bpy_rna_callback.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+1, -1) (Diff)
/source/blender/python/intern/bpy.c (+4, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+42, -0) (Diff)
/source/blender/python/intern/bpy_rna.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_rna_callback.c (+171, -8) (Diff)
/source/blender/python/intern/bpy_rna_callback.h (+5, -0) (Diff)