From 3788003cdaeba4fb2b6dee5737c13412bf2d259a Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Tue, 30 Nov 2021 15:37:10 +0100 Subject: Fix T93368: Dragging Blends Without Previews Unfortunately the drop logic for file-path based drag & drop checks the used icon for its logic. This is very bad and should be changed. But doing this involves some changes that are better not done during bcon4, so for now stick to it and update the icon check. Reviewed by: Julian Eisel Differential Revision: https://developer.blender.org/D13383?id=45314 --- source/blender/editors/screen/screen_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/screen/screen_ops.c') diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 66140cba9c6..220697f465e 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -5778,7 +5778,7 @@ static void keymap_modal_set(wmKeyConfig *keyconf) static bool blend_file_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event)) { if (drag->type == WM_DRAG_PATH) { - if (drag->icon == ICON_FILE_BLEND) { + if (ELEM(drag->icon, ICON_FILE_BLEND, ICON_BLENDER)) { return true; } } -- cgit v1.2.3