diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-03 21:59:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-03 21:59:33 +0400 |
commit | cdc564064c5d7e442b1accf51670b6287c149ff4 (patch) | |
tree | c92064a564506682eb1ab67dd787691bc3e77268 /source/blender/editors/interface | |
parent | 3b996ac1b3fcc93b121a9d4ef6024d5638df780f (diff) |
revert r40738, flipepd enums give quick access to first items, even if it does seem odd to have them flipped.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index d29e5975afb..622d50752fa 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -2322,6 +2322,10 @@ uiPopupBlockHandle *ui_popup_menu_create(bContext *C, ARegion *butregion, uiBut pup->popup= 1; pup->block->flag |= UI_BLOCK_NO_FLIP; } + /* some enums reversing is strange, currently we have no good way to + * reverse some enum's but not others, so reverse all so the first menu + * items are always close to the mouse cursor */ +#if 0 else { /* if this is an rna button then we can assume its an enum * flipping enums is generally not good since the order can be @@ -2330,6 +2334,7 @@ uiPopupBlockHandle *ui_popup_menu_create(bContext *C, ARegion *butregion, uiBut pup->block->flag |= UI_BLOCK_NO_FLIP; } } +#endif if(str) { /* menu is created from a string */ |