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:
authorCampbell Barton <ideasman42@gmail.com>2014-02-12 03:29:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-02-12 03:29:15 +0400
commitbfd0b582ca6c9d7a851490a1f37fb98d4a9cf050 (patch)
tree05c7d782ea0bd26ac107827d420ba87db5f9cb95 /source/blender/editors/interface/interface_layout.c
parent18a8d88923e69fad33c29bddd1f67cb1b6790bef (diff)
fix/workaround for v3d object mode selector flipping direction
Allow menu functions to define their own direction, this way menu_item_enum_opname_menu can keep menu flipping from 2.69.
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index e27177be4b4..57e7ebfd800 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1793,6 +1793,9 @@ static void menu_item_enum_opname_menu(bContext *UNUSED(C), uiLayout *layout, vo
uiLayoutSetOperatorContext(layout, lvl->opcontext);
uiItemsEnumO(layout, lvl->opname, lvl->propname);
+
+ /* override default, needed since this was assumed pre 2.70 */
+ uiBlockSetDirection(layout->root->block, UI_DOWN);
}
void uiItemMenuEnumO(uiLayout *layout, bContext *C, const char *opname, const char *propname, const char *name, int icon)