Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-01-18 18:05:43 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-18 18:05:45 +0300
commit9398db07cce4ec8b6992e14358dcb840dbe46825 (patch)
tree131c03c4e0ac606b0db79238c8fb0fc3bea90595 /source/blender/editors/space_outliner/outliner_tools.c
parent539e170d79567752fe7e641637d4057a6e8ab583 (diff)
Outliner: Keep header operator-free and edit menu cleanup
Headers should not have operators as much as possible. The exception here is for datablocks mode when you want to see the active keyset. Edit menus on the other hand should be clearly distinct from the RMB context menus. Edit menu options should be only the ones that apply to the entire outliner, regardless of the selected element. Context (rmb) menus should be related to the element you RMB on to invoke the menu. I'm also taking this opportunity to start bringing the context menus to Python. There is little reason not to, and it helps editing them (In this case I'm doing it only for the Scene Collection one).
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tools.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 58605f3bec8..a7a2765f7a5 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -2097,7 +2097,7 @@ static int do_outliner_operation_event(bContext *C, ARegion *ar, SpaceOops *soop
WM_operator_name_call(C, "OUTLINER_OT_collection_operation", WM_OP_INVOKE_REGION_WIN, NULL);
}
else if (datalevel == TSE_SCENE_COLLECTION) {
- WM_menu_name_call(C, "OUTLINER_MT_edit_collections", WM_OP_INVOKE_REGION_WIN);
+ WM_menu_name_call(C, "OUTLINER_MT_context_scene_collection", WM_OP_INVOKE_REGION_WIN);
}
else {
WM_operator_name_call(C, "OUTLINER_OT_data_operation", WM_OP_INVOKE_REGION_WIN, NULL);