Fix #115363: Scrollbars for template_lists in popups update issue #115364

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:115363 into main 2023-11-28 09:14:37 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -6017,6 +6017,10 @@ static int ui_do_but_SCROLL(
const bool is_motion = (event->type == MOUSEMOVE);
if (ui_numedit_but_SLI(
but, data, (horizontal) ? mx : my, horizontal, is_motion, false, false)) {
/* Scrollbars in popups need UI layout refresh to update the right items to show. */
if (ui_block_is_popup_any(but->block)) {
ED_region_tag_refresh_ui(data->region);
}
ui_numedit_apply(C, block, but, data);
}
}