From cdc564064c5d7e442b1accf51670b6287c149ff4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 3 Oct 2011 17:59:33 +0000 Subject: revert r40738, flipepd enums give quick access to first items, even if it does seem odd to have them flipped. --- source/blender/editors/interface/interface_regions.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') 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 */ -- cgit v1.2.3