Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 5,736 Lines • ▼ Show 20 Lines | static void keymap_modal_set(wmKeyConfig *keyconf) | ||||
| wmKeyMap *keymap = WM_modalkeymap_ensure(keyconf, "Standard Modal Map", modal_items); | wmKeyMap *keymap = WM_modalkeymap_ensure(keyconf, "Standard Modal Map", modal_items); | ||||
| WM_modalkeymap_assign(keymap, "SCREEN_OT_area_move"); | WM_modalkeymap_assign(keymap, "SCREEN_OT_area_move"); | ||||
| } | } | ||||
| static bool blend_file_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event)) | static bool blend_file_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event)) | ||||
| { | { | ||||
| if (drag->type == WM_DRAG_PATH) { | 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; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static void blend_file_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) | static void blend_file_drop_copy(bContext *UNUSED(C), wmDrag *drag, wmDropBox *drop) | ||||
| { | { | ||||
| Show All 25 Lines | |||||