diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-16 10:44:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-16 10:44:21 +0300 |
commit | 1c1c89262eea0ab4eb62788fd4daf1023ffbf8e1 (patch) | |
tree | 2b0fe1f1a0e45adb2522711c974186efb87efe75 /source/blender/editors/interface/interface_regions.c | |
parent | d272300da95648ccc5b383ab9debb19707aa48e3 (diff) |
WM: changed WM_operator_call to take an argument, which specifies in
which context to run the operator: WM_OP_DEFAULT, WM_OP_REGION_WIN,
WM_OP_AREA or WM_OP_SCREEN. This also replaces WM_operator_call_rwin
since it is more general.
This is useful for buttons and popup menus to run operators, and also
used by a new function to lookup the keymap item for that operator in
the right context.
Diffstat (limited to 'source/blender/editors/interface/interface_regions.c')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index 0c7613bbfcd..bb1105c79af 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -1654,7 +1654,7 @@ static void operator_callback(bContext *C, void *arg, int retval) const char *opname= arg; if(retval > 0) - WM_operator_call(C, opname); + WM_operator_call(C, opname, WM_OP_DEFAULT); } void okee_operator(bContext *C, char *opname, char *str, ...) |