diff options
author | William Reynish <william@reynish.com> | 2010-05-06 21:45:02 +0400 |
---|---|---|
committer | William Reynish <william@reynish.com> | 2010-05-06 21:45:02 +0400 |
commit | 263cc930061b1926712e4058bc8d04ce7d076681 (patch) | |
tree | 063f9477c017973769d08447858636f44fa4e2a1 /source/blender/editors/space_image/space_image.c | |
parent | c8a05922882f7638b91ebcb1cd7a4e89cdf16222 (diff) |
Make drop images work from external desktop into Blender image window.
Still has work todo, like detecting filetype on drop event itself. Ton will continue...
Diffstat (limited to 'source/blender/editors/space_image/space_image.c')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index af35fa4f5a9..3d9f802d0d7 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -537,7 +537,7 @@ void image_keymap(struct wmKeyConfig *keyconf) static int image_drop_poll(bContext *C, wmDrag *drag, wmEvent *event) { if(drag->type==WM_DRAG_PATH) - if(ELEM(drag->icon, ICON_FILE_IMAGE, ICON_FILE_BLANK)) /* rule might not work? */ + if(ELEM3(drag->icon, 0, ICON_FILE_IMAGE, ICON_FILE_BLANK)) /* rule might not work? */ return 1; return 0; } |