diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-31 01:14:32 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-31 01:14:32 +0300 |
commit | b00cddeb66f2b9f51cad15ed597a6ca975bd31dd (patch) | |
tree | bd686691ecde5cd24abd2330dea086e275d07635 /source/blender/windowmanager | |
parent | 3702998fec6d237eb567bb8353ac93c8d4a68d4c (diff) |
Macro registration using the normal rna registration methods (like operators).
bpy.types.register(MacroClass)
instead of
bpy.ops.add_macro(MacroClass)
The rest is unchanged.
Also remove some now unused code for the old registration methods (there's still some remaining).
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index f7054af9443..e9bf1be5861 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -360,6 +360,7 @@ void WM_operatortype_append_macro_ptr(void (*opfunc)(wmOperatorType*, void*), vo ot= MEM_callocN(sizeof(wmOperatorType), "operatortype"); ot->srna= RNA_def_struct(&BLENDER_RNA, "", "OperatorProperties"); + ot->flag= OPTYPE_MACRO; ot->exec= wm_macro_exec; ot->invoke= wm_macro_invoke; ot->modal= wm_macro_modal; |