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:
authorCampbell Barton <ideasman42@gmail.com>2011-10-03 21:59:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-03 21:59:33 +0400
commitcdc564064c5d7e442b1accf51670b6287c149ff4 (patch)
treec92064a564506682eb1ab67dd787691bc3e77268 /source
parent3b996ac1b3fcc93b121a9d4ef6024d5638df780f (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')
-rw-r--r--source/blender/editors/interface/interface_regions.c5
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 */