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:
parent
447368b472
commit
f69aaf71f8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue