Fix T37442: Disabled uiList would "freeze" Blender when trying to drag-resize it.
For now, simply disable drag-resize for disabled uiLists!
This commit is contained in:
parent
481a138144
commit
d49498a461
Notes:
blender-bot
2023-02-14 11:36:52 +01:00
Referenced by issue #37442, UI List can freeze blender
|
@ -6785,7 +6785,7 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *ar)
|
|||
is_over_dragbut = true;
|
||||
}
|
||||
|
||||
if (is_over_dragbut && type == LEFTMOUSE && val == KM_PRESS) {
|
||||
if (is_over_dragbut && type == LEFTMOUSE && val == KM_PRESS && !(but->flag & UI_BUT_DISABLED)) {
|
||||
uiHandleButtonData *data;
|
||||
int *size = (int *)but->poin;
|
||||
|
||||
|
|
Loading…
Reference in New Issue