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:
2021-11-30 15:37:10 +01:00
committed by Julian Eisel
parent de7f1e8e07
commit 3788003cda

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