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
path: root/source
diff options
context:
space:
mode:
authorPablo Vazquez <venomgfx@gmail.com>2018-08-22 17:29:41 +0300
committerPablo Vazquez <venomgfx@gmail.com>2018-08-22 17:29:49 +0300
commitb28a74746b94026365d1c30a21454c933450187a (patch)
tree5dd3fe9d8809990b12b6e2db49e512b57b93a52e /source
parent6a681981e4598f07591a4b99f624f96aea3d2522 (diff)
UI: Show development entries in context menu when Dev. Extras is enabled
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_context_menu.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_context_menu.c b/source/blender/editors/interface/interface_context_menu.c
index d00ab70562c..113c28f05e1 100644
--- a/source/blender/editors/interface/interface_context_menu.c
+++ b/source/blender/editors/interface/interface_context_menu.c
@@ -731,11 +731,13 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but)
uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Online Manual"),
ICON_URL, "WM_OT_doc_view_manual_ui_context");
- uiItemFullO(
- layout, "WM_OT_doc_view",
- CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Online Python Reference"),
- ICON_NONE, NULL, WM_OP_EXEC_DEFAULT, 0, &ptr_props);
- RNA_string_set(&ptr_props, "doc_id", buf);
+ if (U.flag & USER_DEVELOPER_UI) {
+ uiItemFullO(
+ layout, "WM_OT_doc_view",
+ CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Online Python Reference"),
+ ICON_NONE, NULL, WM_OP_EXEC_DEFAULT, 0, &ptr_props);
+ RNA_string_set(&ptr_props, "doc_id", buf);
+ }
/* XXX inactive option, not for public! */
#if 0
@@ -748,7 +750,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but)
}
}
- if (but->optype) {
+ if (but->optype && U.flag & USER_DEVELOPER_UI) {
uiItemO(layout, NULL,
ICON_NONE, "UI_OT_copy_python_command_button");
}