Fix T89449: File Browser preview image not responsive to click
Logic in the main `switch` for button handling was wrong and would execute for other button types than the new data-set row button type.
This commit is contained in:
parent
37458798fa
commit
afb17552e1
Notes:
blender-bot
2023-02-14 00:20:15 +01:00
Referenced by issue #89533, Cannot double click and open any folder anymore Referenced by issue #89467, Asset Manager entries cannot be edited Referenced by issue #89449, UI: File Browser Preview Image not responsive to click Referenced by issue #89438, Geometry Nodes Boolean Union Unstable in Render
|
@ -7827,6 +7827,7 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
|
|||
case UI_BTYPE_CHECKBOX:
|
||||
case UI_BTYPE_CHECKBOX_N:
|
||||
case UI_BTYPE_ROW:
|
||||
case UI_BTYPE_DATASETROW:
|
||||
retval = ui_do_but_TOG(C, but, data, event);
|
||||
break;
|
||||
case UI_BTYPE_SCROLL:
|
||||
|
@ -7851,9 +7852,6 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent *
|
|||
case UI_BTYPE_LABEL:
|
||||
case UI_BTYPE_IMAGE:
|
||||
case UI_BTYPE_PROGRESS_BAR:
|
||||
case UI_BTYPE_DATASETROW:
|
||||
retval = ui_do_but_TOG(C, but, data, event);
|
||||
break;
|
||||
case UI_BTYPE_NODE_SOCKET:
|
||||
retval = ui_do_but_EXIT(C, but, data, event);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue