Fix T65641: Move to collection - arrow keys work in the opposite direction
authorDalai Felinto <dfelinto@gmail.com>
Fri, 14 Jun 2019 15:56:21 +0000 (12:56 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 14 Jun 2019 15:58:36 +0000 (12:58 -0300)
Patch my Germano Cavalcante (mano-wii).

source/blender/editors/object/object_edit.c

index 8ccd350..4f1154c 100644 (file)
@@ -1604,6 +1604,7 @@ static void move_to_collection_menu_create(bContext *UNUSED(C), uiLayout *layout
   MoveToCollectionData *menu = menu_v;
   const char *name = BKE_collection_ui_name_get(menu->collection);
 
+  UI_block_flag_enable(uiLayoutGetBlock(layout), UI_BLOCK_IS_FLIP);
   uiItemIntO(layout, name, ICON_NONE, menu->ot->idname, "collection_index", menu->index);
   uiItemS(layout);