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:
@@ -6785,7 +6785,7 @@ static int ui_handle_list_event(bContext *C, const wmEvent *event, ARegion *ar)
|
|||||||
is_over_dragbut = true;
|
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;
|
uiHandleButtonData *data;
|
||||||
int *size = (int *)but->poin;
|
int *size = (int *)but->poin;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user