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
This commit is contained in:
Harley Acheson 2021-11-30 15:37:10 +01:00 committed by Julian Eisel
parent de7f1e8e07
commit 3788003cda
Notes: blender-bot 2023-02-27 16:47:46 +01:00
Referenced by issue #93557, [Blender 3.0] Line art is Flickering
Referenced by issue #93537, Blender 3.0 Geometry Nodes breaks UV channels
Referenced by issue #93368, File Browser drag and drop not working (when dragging with Display as Thumbnails)
Referenced by commit 17e92711d3, UI: Refactor path dropping so logic doesn't depend on icons
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}