WM: Support opening backup .blend files via drag-drop

Add support for opening Blender backup `.blend` files (`.blend1`, `.blend2`, etc) by dropping them into the window, just like regular .blend files.

{F13393482, size=full}

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D15700
This commit is contained in:
Pablo Vazquez 2022-09-27 19:19:29 +02:00 committed by Pablo Vazquez
parent 447368b472
commit f69aaf71f8
1 changed files with 1 additions and 1 deletions

View File

@ -5742,7 +5742,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 (ELEM(drag->icon, ICON_FILE_BLEND, ICON_BLENDER)) {
if (ELEM(drag->icon, ICON_FILE_BLEND, ICON_FILE_BACKUP, ICON_BLENDER)) {
return true;
}
}