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:
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 0813e4cba07..8e5d5740444 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1709,11 +1709,12 @@ void uiItemMenuEnumO(uiLayout *layout, bContext *C, const char *opname, const ch
lvl->opcontext = layout->root->opcontext;
/* add hotkey here, lower UI code can't detect it */
- if(layout->root->block->flag & UI_BLOCK_LOOP) {
+ if (layout->root->block->flag & UI_BLOCK_LOOP) {
if (ot->prop && WM_key_event_operator_string(C, ot->idname,
- layout->root->opcontext, NULL, false, keybuf, sizeof(keybuf))) {
- strncat(namestr, "|", sizeof(namestr)-1);
- strncat(namestr, keybuf, sizeof(namestr)-1);
+ layout->root->opcontext, NULL, false, keybuf, sizeof(keybuf)))
+ {
+ strncat(namestr, "|", sizeof(namestr) - 1);
+ strncat(namestr, keybuf, sizeof(namestr) - 1);
}
}