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_intern.h')
-rw-r--r--source/blender/editors/interface/interface_intern.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index d308f7d852e..a5e4fa5890f 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -305,7 +305,17 @@ struct uiBlock {
char direction;
char dt; /* drawtype: UI_EMBOSS, UI_EMBOSSN ... etc, copied to buttons */
char auto_open;
- char _pad[7];
+
+ /* this setting is used so newly opened menu's dont popout the first item under the mouse,
+ * the reasoning behind this is because of muscle memory for opening menus.
+ *
+ * Without this, the first time opening a Submenu and activating an item in it will be 2 steps,
+ * but the second time the same item is accessed the menu memory would auto activate the
+ * last used menu and the key intended to select that submenu ends up being passed into the submenu.
+ * - Campbell
+ */
+ char auto_is_first_event;
+ char _pad[6];
double auto_open_last;
const char *lockstr;