forked from bartvdbraak/blender
Correct recent cleanup
Removed call which was still needed
This commit is contained in:
parent
bc371030a7
commit
cfe54245a8
@ -1427,7 +1427,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
|
||||
if (down || top) {
|
||||
if (dir1 == UI_DIR_UP && top == 0) dir1 = UI_DIR_DOWN;
|
||||
if (dir1 == UI_DIR_DOWN && down == 0) dir1 = UI_DIR_UP;
|
||||
/* dir2 is never set to UI_DIR_UP here */
|
||||
BLI_assert(dir2 != UI_DIR_UP);
|
||||
// if (dir2 == UI_DIR_UP && top == 0) dir2 = UI_DIR_DOWN;
|
||||
if (dir2 == UI_DIR_DOWN && down == 0) dir2 = UI_DIR_UP;
|
||||
}
|
||||
|
@ -3214,6 +3214,7 @@ void uiTemplateList(
|
||||
|
||||
/* add scrollbar */
|
||||
if (len > layoutdata.visual_items) {
|
||||
/* col = */ uiLayoutColumn(row, false);
|
||||
uiDefButI(block, UI_BTYPE_SCROLL, 0, "", 0, 0, UI_UNIT_X * 0.75, UI_UNIT_Y * dyn_data->visual_height,
|
||||
&ui_list->list_scroll, 0, dyn_data->height - dyn_data->visual_height,
|
||||
dyn_data->visual_height, 0, "");
|
||||
|
Loading…
Reference in New Issue
Block a user