Fix T47185: Wrong items order with template_icon_view.

This commit is contained in:
Bastien Montagne 2016-01-15 15:19:14 +01:00
parent 7776f03873
commit 9137a44014
Notes: blender-bot 2023-04-19 22:54:54 +02:00
Referenced by issue #47185, Wrong items order with template_icon_view
1 changed files with 2 additions and 2 deletions

View File

@ -1636,7 +1636,7 @@ static uiBlock *ui_icon_view_menu_cb(bContext *C, ARegion *ar, void *arg_litem)
h = UI_UNIT_X * (args.icon_scale + args.show_labels);
block = UI_block_begin(C, ar, "_popup", UI_EMBOSS_PULLDOWN);
UI_block_flag_enable(block, UI_BLOCK_LOOP);
UI_block_flag_enable(block, UI_BLOCK_LOOP | UI_BLOCK_NO_FLIP);
RNA_property_enum_items(C, &args.ptr, args.prop, &item, NULL, &free);
@ -1644,7 +1644,7 @@ static uiBlock *ui_icon_view_menu_cb(bContext *C, ARegion *ar, void *arg_litem)
int x, y;
x = (a % 8) * w;
y = (a / 8) * h;
y = -(a / 8) * h;
icon = item[a].icon;
value = item[a].value;