[Bf-blender-cvs] [a80ddb7f9a0] blender2.8: Fix file browser click to select not working on tablets, after recent changes.

Brecht Van Lommel noreply at git.blender.org
Tue Nov 27 14:21:10 CET 2018


Commit: a80ddb7f9a07942801c1bfe6b30057661e4ec213
Author: Brecht Van Lommel
Date:   Tue Nov 27 14:17:10 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa80ddb7f9a07942801c1bfe6b30057661e4ec213

Fix file browser click to select not working on tablets, after recent changes.

The highlight on mousemove operator should not swallow events.

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

M	source/blender/editors/space_file/file_ops.c

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

diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index a9fcbf7ec89..ea73026020d 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1147,11 +1147,11 @@ static int file_highlight_invoke(bContext *C, wmOperator *UNUSED(op), const wmEv
 	SpaceFile *sfile = CTX_wm_space_file(C);
 
 	if (!file_highlight_set(sfile, ar, event->x, event->y))
-		return OPERATOR_CANCELLED;
+		return OPERATOR_PASS_THROUGH;
 
 	ED_area_tag_redraw(CTX_wm_area(C));
 
-	return OPERATOR_FINISHED;
+	return OPERATOR_PASS_THROUGH;
 }
 
 void FILE_OT_highlight(struct wmOperatorType *ot)



More information about the Bf-blender-cvs mailing list