diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-09 14:30:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-09 14:30:11 +0400 |
commit | d36a1b4f06698bcf031f06f7f289ca4636f42c88 (patch) | |
tree | f8512bb7abf71c8c1be115fe9cbaf33460be4cf7 /source/blender/windowmanager/WM_types.h | |
parent | a0ea138d31cfe90412a22a6a941acfa4ba7976a3 (diff) |
added layout attribute for setting the operator execution context.
eg, layout.operator_context = 'INVOKE_REGION_WIN'
Needed to set the context that menu item operators are executed in.
fixed missing NULL check with anim system debug printing.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 2a68a9980de..739cfbcc1ac 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -44,6 +44,7 @@ struct wmWindowManager; #define OPTYPE_UNDO 2 /* context to call operator in for WM_operator_name_call */ +/* rna_ui.c contains EnumPropertyItem's of these, keep in sync */ enum { /* if there's invoke, call it, otherwise exec */ WM_OP_INVOKE_DEFAULT, |