Commit: afb17552e19c56daab6928ed1e2514b962770e19
Author: Julian Eisel
Date:   Mon Jun 28 18:33:22 2021 +0200
Branches: master
https://developer.blender.org/rBafb17552e19c56daab6928ed1e2514b962770e19

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.

===================================================================

M       source/blender/editors/interface/interface_handlers.c

===================================================================

diff --git a/source/blender/editors/interface/interface_handlers.c 
b/source/blender/editors/interface/interface_handlers.c
index f4536d95dc5..062e46e8ec2 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to